mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-27 02:46:21 +00:00
prefs_free_string() doesnt need to check if pref is NULL
g_free(NULL); is noop.
This commit is contained in:
@@ -537,13 +537,10 @@ prefs_get_string_list_with_option(preference_t pref, gchar *option)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
prefs_free_string(char *pref)
|
prefs_free_string(char *pref)
|
||||||
{
|
{
|
||||||
if (pref) {
|
g_free(pref);
|
||||||
g_free(pref);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user