From: Daiki Ueno Date: Fri, 15 Feb 2019 21:08:55 +0000 (+0100) Subject: its: Avoid uninitialized variable X-Git-Tag: v0.20~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93aba3395c8a75051173c519c4ee40a1f4ccad8f;p=thirdparty%2Fgettext.git its: Avoid uninitialized variable * gettext-tools/src/its.c (normalize_whitespace): Initialize last_ws. Fixes commit 89e7d2663bd27b8cdd300f26095f49d2c7519030. --- diff --git a/gettext-tools/src/its.c b/gettext-tools/src/its.c index 9964c2d1f..c542db476 100644 --- a/gettext-tools/src/its.c +++ b/gettext-tools/src/its.c @@ -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++)