From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: bug-guile@gnu.org
Subject: [PATCH] Fix bug: Init auto var to unrandomize `stack_depth' rv.
Date: Sat, 09 Jan 2010 09:28:57 +0100 [thread overview]
Message-ID: <E1NTWgr-00025Y-C0@ambire.localdomain> (raw)
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 <ttn@gnuvola.org>
---
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
next reply other threads:[~2010-01-09 8:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-09 8:28 Thien-Thi Nguyen [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-01-09 10:01 [PATCH] Fix bug: Init auto var to unrandomize `stack_depth' rv Thien-Thi Nguyen
2010-01-09 22:29 ` Andy Wingo
2010-01-10 17:41 ` Thien-Thi Nguyen
2010-01-12 19:35 ` Andy Wingo
2010-01-13 10:02 ` Ludovic Courtès
2010-01-13 13:56 ` Thien-Thi Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1NTWgr-00025Y-C0@ambire.localdomain \
--to=ttn@gnuvola.org \
--cc=bug-guile@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).