public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] valgrind complains
@ 2004-12-08  0:23 wim delvaux
  2004-12-08  4:02 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: wim delvaux @ 2004-12-08  0:23 UTC (permalink / raw)
  To: bluez-users

about unintialized values in the following code

 struct hci_dev_info di;

         di.dev_id = dev_id;

         if( ioctl( fd, HCIGETDEVINFO, (void*)&di) != 0 )
              continue;  // uh ?

 printf( "%s\n", di.name ); // here valgrind complains on the third character


Should I perhaps memset ? is name field null terminated ?


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-08  4:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-08  0:23 [Bluez-users] valgrind complains wim delvaux
2004-12-08  4:02 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox