From 63fb11e824ddf0be31a92b4be1b86023acbf1ef3 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Wed, 13 Jan 2016 22:48:29 +0100 Subject: [PATCH] Default return in ZakUtils::string_to_boolean. --- src/generic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generic.c b/src/generic.c index 1540152..2155f3d 100644 --- a/src/generic.c +++ b/src/generic.c @@ -501,6 +501,8 @@ zak_utils_string_to_boolean (const gchar *str) return FALSE; } + bool_value = FALSE; + str_value = g_strstrip (g_strdup (str)); if (strcmp (str_value, "0") == 0 -- 2.49.0