]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid uninitialized variable.
authorBruno Haible <bruno@clisp.org>
Fri, 15 Nov 2002 12:59:35 +0000 (12:59 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:08:52 +0000 (12:08 +0200)
src/ChangeLog
src/x-php.c

index 534e68a709d82cf5ab72e76818d3d4e2130c7bee..f26bd462710910395707dfad22e2ffab727c9206 100644 (file)
@@ -1,3 +1,7 @@
+2002-11-14  Bruno Haible  <bruno@clisp.org>
+
+       * x-php.c (phase3_getc): Initialize variable last_was_qmark.
+
 2002-11-13  Bruno Haible  <bruno@clisp.org>
 
        Assume ANSI C.
index 214269594fd7f415e1ebe52ba81d31fa89843291..1d2b5f7fd63d6fb10687118a3cf78d0ff43d5429 100644 (file)
@@ -586,7 +586,7 @@ phase3_getc ()
   if (c == '#')
     {
       /* sh comment.  */
-      bool last_was_qmark;
+      bool last_was_qmark = false;
 
       comment_start ();
       lineno = line_number;
@@ -673,7 +673,7 @@ phase3_getc ()
        case '/':
          {
            /* C++ comment.  */
-           bool last_was_qmark;
+           bool last_was_qmark = false;
 
            comment_start ();
            lineno = line_number;