diff options
author | Avinash Sonawane <rootkea@gmail.com> | 2021-08-12 19:43:36 +0530 |
---|---|---|
committer | Alexander Schwinn <alexxcons@xfce.org> | 2021-08-24 20:01:43 +0000 |
commit | f2eff9707f8eee6953f5f72c27ce26c6448a8c89 (patch) | |
tree | 805cadc9e7520829d3ace399b2ce0427fc629fb9 | |
parent | 91adc9bad1109e2b31270adc2ec09795ddb18212 (diff) | |
download | exo-f2eff9707f8eee6953f5f72c27ce26c6448a8c89.tar.gz |
Initialize `modifier` at the time of declaration
-rw-r--r-- | exo/exo-string.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/exo/exo-string.c b/exo/exo-string.c index f35edb5..1d3df43 100644 --- a/exo/exo-string.c +++ b/exo/exo-string.c @@ -231,7 +231,7 @@ exo_strdup_strftime (const gchar *format, gchar *piece; gchar *result; gchar *converted; - gchar modifier; + gchar modifier = 0; gint i; /* Format could be translated, and contain UTF-8 chars, @@ -292,7 +292,6 @@ exo_strdup_strftime (const gchar *format, break; } - modifier = 0; if (strchr (SUS_EXTENDED_STRFTIME_MODIFIERS, *remainder) != NULL) { modifier = *remainder++; |