mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Remove redundant checks before free
Remove checks for NULL before g_free(). https://bugzilla.gnome.org/show_bug.cgi?id=733156
This commit is contained in:
@@ -460,9 +460,7 @@ printevent (const char *pname, int event, const char *tag)
|
||||
static gchar *event_string = NULL;
|
||||
GString *str;
|
||||
|
||||
if (event_string) {
|
||||
g_free(event_string);
|
||||
}
|
||||
g_free(event_string);
|
||||
|
||||
str = g_string_new ("");
|
||||
g_string_printf (str, "[%s] [%-20s]", tag, pname);
|
||||
|
Reference in New Issue
Block a user