Always initialize variables in speeddial_new_from_file
This commit is contained in:
parent
a8ce104d86
commit
648610ef66
1 changed files with 4 additions and 4 deletions
|
@ -1494,8 +1494,8 @@ speeddial_new_from_file (const gchar* config,
|
||||||
{
|
{
|
||||||
gchar* key;
|
gchar* key;
|
||||||
gchar* val;
|
gchar* val;
|
||||||
gchar* slot;
|
gchar* slot = NULL;
|
||||||
gchar* dial_id;
|
gchar* dial_id = NULL;
|
||||||
gchar* uri;
|
gchar* uri;
|
||||||
gchar** values = g_strsplit (parts[i], "\"", -1);
|
gchar** values = g_strsplit (parts[i], "\"", -1);
|
||||||
|
|
||||||
|
@ -1568,10 +1568,10 @@ speeddial_new_from_file (const gchar* config,
|
||||||
thumb_size = atoi (g_strndup (val + 1, strlen (val) - 3));
|
thumb_size = atoi (g_strndup (val + 1, strlen (val) - 3));
|
||||||
if (thumb_size == 80)
|
if (thumb_size == 80)
|
||||||
thumb_size_type = g_strdup ("SMALL");
|
thumb_size_type = g_strdup ("SMALL");
|
||||||
else if (thumb_size == 160)
|
|
||||||
thumb_size_type = g_strdup ("MEDIUM");
|
|
||||||
else if (thumb_size == 240)
|
else if (thumb_size == 240)
|
||||||
thumb_size_type = g_strdup ("BIG");
|
thumb_size_type = g_strdup ("BIG");
|
||||||
|
else /* if (thumb_size == 160) */
|
||||||
|
thumb_size_type = g_strdup ("MEDIUM");
|
||||||
g_key_file_set_value (key_file, "settings", "size", thumb_size_type);
|
g_key_file_set_value (key_file, "settings", "size", thumb_size_type);
|
||||||
|
|
||||||
g_free (thumb_size_type);
|
g_free (thumb_size_type);
|
||||||
|
|
Loading…
Reference in a new issue