From patchwork Thu Jun 15 20:41:47 2006 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prakash Punnoor X-Patchwork-Id: 12333 Received: from mail-in-01.arcor-online.net ([151.189.21.41]) by www.linuxtv.org with esmtp (Exim 4.50) id 1Fqyez-0007l1-Am for vdr@linuxtv.org; Thu, 15 Jun 2006 22:41:49 +0200 Received: from mail-in-03-z2.arcor-online.net (mail-in-03-z2.arcor-online.net [151.189.8.15]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id 9AA57E9D60 for ; Thu, 15 Jun 2006 22:41:47 +0200 (CEST) Received: from mail-in-04.arcor-online.net (mail-in-04.arcor-online.net [151.189.21.44]) by mail-in-03-z2.arcor-online.net (Postfix) with ESMTP id 8DB3827A1B1 for ; Thu, 15 Jun 2006 22:41:47 +0200 (CEST) Received: from lalala (p508620C4.dip0.t-ipconnect.de [80.134.32.196]) (Authenticated sender: prakashp@arcor.de) by mail-in-04.arcor-online.net (Postfix) with ESMTP id 58BC61275A8 for ; Thu, 15 Jun 2006 22:41:47 +0200 (CEST) From: Prakash Punnoor To: vdr@linuxtv.org Date: Thu, 15 Jun 2006 22:41:47 +0200 User-Agent: KMail/1.9.3 References: <448BE671.3020100@cadsoft.de> In-Reply-To: <448BE671.3020100@cadsoft.de> MIME-Version: 1.0 Message-Id: <200606152241.47746.prakash@punnoor.de> Subject: [vdr] VDR version 1.4.1, uninitialized var X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 20:41:49 -0000 Status: O X-Status: X-Keywords: X-UID: 9799 Hi, I suggest following small patch, as valgrind complains otherwise in combination with softdevice: Cheers, --- ringbuffer.c.old 2006-06-15 22:36:33.000000000 +0200 +++ ringbuffer.c 2006-06-15 22:19:11.000000000 +0200 @@ -157,6 +157,7 @@ description = Description ? strdup(Description) : NULL; tail = head = margin = Margin; buffer = NULL; + gotten = 0; if (Size > 1) { // 'Size - 1' must not be 0! if (Margin <= Size / 2) { buffer = MALLOC(uchar, Size);