Return-Path: From: wim delvaux To: bluez-users@lists.sourceforge.net MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Message-Id: <200412080123.07501.wim.delvaux@adaptiveplanet.com> Subject: [Bluez-users] valgrind complains Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed, 8 Dec 2004 01:23:07 +0100 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