guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] GNU Guile branch, master, updated. release_1-9-2-99-g476


From: Andy Wingo
Subject: [Guile-commits] GNU Guile branch, master, updated. release_1-9-2-99-g4769c9d
Date: Wed, 26 Aug 2009 11:22:36 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=4769c9db2c7949ede3b637d5e64d90519a4932e0

The branch, master has been updated
       via  4769c9db2c7949ede3b637d5e64d90519a4932e0 (commit)
      from  5a70cf0a6c318be6faf5c063128e14a492c7b06b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4769c9db2c7949ede3b637d5e64d90519a4932e0
Author: Andy Wingo <address@hidden>
Date:   Wed Aug 26 13:15:07 2009 +0200

    fix uninitialized variable in scm_read_character
    
    * libguile/read.c (scm_read_character): Fix uninitialized variable.

-----------------------------------------------------------------------

Summary of changes:
 libguile/read.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/libguile/read.c b/libguile/read.c
index 821e01c..c36842a 100644
--- a/libguile/read.c
+++ b/libguile/read.c
@@ -818,7 +818,6 @@ static SCM
 scm_read_character (scm_t_wchar chr, SCM port)
 #define FUNC_NAME "scm_lreadr"
 {
-  SCM ch;
   SCM charname = scm_i_make_string (READER_CHAR_NAME_MAX_SIZE, NULL);
   size_t charname_len;
   scm_t_wchar cp;
@@ -861,10 +860,11 @@ scm_read_character (scm_t_wchar chr, SCM port)
      characters.  */
   if (scm_i_is_narrow_string (charname)
       || scm_i_try_narrow_string (charname))
-    ch = scm_i_charname_to_char (scm_i_string_chars (charname), 
-                                charname_len);
-  if (scm_is_true (ch))
-    return ch;
+    { SCM ch = scm_i_charname_to_char (scm_i_string_chars (charname),
+                                       charname_len);
+      if (scm_is_true (ch))
+        return ch;
+    }
 
  char_error:
   scm_i_input_error (FUNC_NAME, port, "unknown character name ~a",


hooks/post-receive
-- 
GNU Guile




reply via email to

[Prev in Thread] Current Thread [Next in Thread]