]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
its: Avoid uninitialized variable
authorDaiki Ueno <ueno@gnu.org>
Fri, 15 Feb 2019 21:08:55 +0000 (22:08 +0100)
committerDaiki Ueno <ueno@gnu.org>
Fri, 15 Feb 2019 21:10:16 +0000 (22:10 +0100)
* gettext-tools/src/its.c (normalize_whitespace): Initialize last_ws.
Fixes commit 89e7d2663bd27b8cdd300f26095f49d2c7519030.

gettext-tools/src/its.c

index 9964c2d1f30cf2bde4c0b335484c87f23f013f7f..c542db47672338647830f089114f7f76aff04b3e 100644 (file)
@@ -467,7 +467,7 @@ normalize_whitespace (const char *text, enum its_whitespace_type_ty whitespace)
          nor the end of the text.  */
       {
         char *result, *p, *out;
-        bool last_ws;
+        bool last_ws = false;
 
         result = xstrdup (text);
         for (p = out = result; *p != '\0'; p++)