From 7feaeefc7e5e0ab9a2dfeede35aea14d4dcecb3f Mon Sep 17 00:00:00 2001 From: tadam Date: Sat, 19 Dec 2009 01:42:57 +0000 Subject: [PATCH] Pre-initialise "len2" to zero, to avoid GCC warning during compilation. Completely trivial change to shut GCC up. --- ChangeLog | 4 ++++ libs/Flocale.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3868dc6da..1192129b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-12-19 Thomas Adam + * libs/Flocale.c (FlocaleEncodeString): + Pre-initialise "len2" to zero, to avoid GCC warning during compilation. + 2009-12-12 Thomas Adam * fvwm/fvwm.c (StartupStuff): Reset the state of the "Restarting" flag to False when restarting FVWM. diff --git a/libs/Flocale.c b/libs/Flocale.c index b30a18c33..058dc49df 100644 --- a/libs/Flocale.c +++ b/libs/Flocale.c @@ -433,6 +433,8 @@ char *FlocaleEncodeString( const char *bidi_charset; len1 = len; + len2 = 0; + if (is_rtl != NULL) *is_rtl = False; *do_free = False; -- 2.11.4.GIT