Return-Path: Date: Tue, 19 Dec 2006 12:57:37 +0200 From: Tuomas Suutari In-reply-to: <1166524299.29972.24.camel@violet> To: BlueZ development Message-id: <200612191257.37628.thsuut@utu.fi> MIME-version: 1.0 References: <200612191103.20942.thsuut@utu.fi> <200612191147.39325.thsuut@utu.fi> <1166524299.29972.24.camel@violet> Subject: Re: [Bluez-devel] rfcomm_sock_sendmsg with len==0 (in Linux 2.6.18) Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net On 2006-12-19 Tuesday 12:31, Marcel Holtmann wrote: > that is really strange. A recent compiler should detect that err can > be used uninitialized. It (gcc 4.1.1) didn't, maybe that's because it can't know if len is always >0. Though it should have warned anyway. > How about the attached patch. Does it work for you? Yes. Now it returns 0 when called with len==0. Thanks. -- Tuomas Suutari | +358 50 3806983 | thsuut@utu.fi ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel