]> saetta.ns0.it Git - libzakutils/commitdiff
Default return in ZakUtils::string_to_boolean. v0.0.1
authorAndrea Zagli <azagli@libero.it>
Wed, 13 Jan 2016 21:48:29 +0000 (22:48 +0100)
committerAndrea Zagli <azagli@libero.it>
Wed, 13 Jan 2016 21:48:29 +0000 (22:48 +0100)
src/generic.c

index 15401523721522fa9b67e0ba0cd6bb7d78cd3154..2155f3d9af42e09fc266fe001eac3606602836cc 100644 (file)
@@ -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