[Xfce4-commits] [xfce/xfce4-panel] 01/01: Correctly initialize return value (Bug #10873)
noreply at xfce.org
noreply at xfce.org
Wed Apr 18 23:58:23 CEST 2018
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-panel.
commit a6bd44d8d4de549b06debb3a6ebb045bf3c00186
Author: Mario Rugiero <mrugiero at gmail.com>
Date: Wed Apr 18 23:57:53 2018 +0200
Correctly initialize return value (Bug #10873)
---
migrate/migrate-config.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/migrate/migrate-config.c b/migrate/migrate-config.c
index 5d92d26..b018d00 100644
--- a/migrate/migrate-config.c
+++ b/migrate/migrate-config.c
@@ -38,11 +38,11 @@ migrate_config_strchr_count (const gchar *haystack,
const gchar needle)
{
const gchar *p;
- guint count;
+ guint count = 0;
if (G_UNLIKELY (haystack != NULL))
{
- for (p = haystack, count = 0; *p != '\0'; ++p)
+ for (p = haystack; *p != '\0'; ++p)
if (*p == needle)
count++;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list