From: Bruno Haible Date: Fri, 15 Nov 2002 12:59:35 +0000 (+0000) Subject: Avoid uninitialized variable. X-Git-Tag: v0.12~1210 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65f9550385452f770fbbf62db53f93d46977a465;p=thirdparty%2Fgettext.git Avoid uninitialized variable. --- diff --git a/src/ChangeLog b/src/ChangeLog index 534e68a70..f26bd4627 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2002-11-14 Bruno Haible + + * x-php.c (phase3_getc): Initialize variable last_was_qmark. + 2002-11-13 Bruno Haible Assume ANSI C. diff --git a/src/x-php.c b/src/x-php.c index 214269594..1d2b5f7fd 100644 --- a/src/x-php.c +++ b/src/x-php.c @@ -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;