From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.bugs Subject: [PATCH] Fix bug: Init auto var to unrandomize `stack_depth' rv. Date: Sat, 09 Jan 2010 09:28:57 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1263025973 10022 80.91.229.12 (9 Jan 2010 08:32:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jan 2010 08:32:53 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Jan 09 09:32:45 2010 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NTWkV-0004fD-T9 for guile-bugs@m.gmane.org; Sat, 09 Jan 2010 09:32:44 +0100 Original-Received: from localhost ([127.0.0.1]:44849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTWkV-0005yj-A6 for guile-bugs@m.gmane.org; Sat, 09 Jan 2010 03:32:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NTWjw-0005y2-FL for bug-guile@gnu.org; Sat, 09 Jan 2010 03:32:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NTWjr-0005wK-I6 for bug-guile@gnu.org; Sat, 09 Jan 2010 03:32:06 -0500 Original-Received: from [199.232.76.173] (port=40665 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTWjq-0005w3-GO for bug-guile@gnu.org; Sat, 09 Jan 2010 03:32:03 -0500 Original-Received: from smtp-out13.alice.it ([85.33.2.18]:2936) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NTWjq-00062S-5G for bug-guile@gnu.org; Sat, 09 Jan 2010 03:32:02 -0500 Original-Received: from FBCMMO05.fbc.local ([192.168.184.136]) by smtp-out13.alice.it with Microsoft SMTPSVC(6.0.3790.3959); Sat, 9 Jan 2010 09:31:57 +0100 Original-Received: from FBCMCL01B06.fbc.local ([192.168.69.87]) by FBCMMO05.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sat, 9 Jan 2010 09:31:22 +0100 Original-Received: from ambire.localdomain ([79.45.74.123]) by FBCMCL01B06.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sat, 9 Jan 2010 09:31:22 +0100 Original-Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1NTWgr-00025Y-C0 for bug-guile@gnu.org; Sat, 09 Jan 2010 09:28:57 +0100 X-OriginalArrivalTime: 09 Jan 2010 08:31:23.0120 (UTC) FILETIME=[204C8F00:01CA9106] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4426 Archived-At: First patch to Guile 1.9! I prepared the following with "git format-patch -s", recopying the Subject line, sans "[PATCH] ", and prefixing with a horizontal rule. Is this ok? Do you prefer some other format? Most importantly: Am i on the right path to regaining official repo write privs? thi _______________________________________________________________________ Fix bug: Init auto var to unrandomize `stack_depth' rv. * stacks.c (stack_depth): Init `n'. Signed-off-by: Thien-Thi Nguyen --- libguile/stacks.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libguile/stacks.c b/libguile/stacks.c index 61b7be3..ce16063 100644 --- a/libguile/stacks.c +++ b/libguile/stacks.c @@ -66,7 +66,7 @@ static SCM stack_id_with_fp (SCM frame, SCM **fp); static long stack_depth (SCM frame, SCM *fp) { - long n; + long n = 0; /* count frames, skipping boot frames */ for (; scm_is_true (frame) && SCM_VM_FRAME_FP (frame) > fp; frame = scm_frame_previous (frame)) -- 1.6.3.2