notify-send: Clear errors that could be re-used
We're using error variable multiple times, and this may lead to problems when trying to set it again. So let's just clear once it's used.
This commit is contained in:
parent
1da6996491
commit
47400a2ff7
|
@ -301,7 +301,7 @@ main (int argc, char *argv[])
|
|||
|
||||
if (!retval) {
|
||||
fprintf (stderr, "%s\n", error->message);
|
||||
g_error_free (error);
|
||||
g_clear_error (&error);
|
||||
hint_error = TRUE;
|
||||
}
|
||||
}
|
||||
|
@ -379,7 +379,7 @@ main (int argc, char *argv[])
|
|||
|
||||
if (!retval) {
|
||||
fprintf (stderr, "%s\n", error->message);
|
||||
g_error_free (error);
|
||||
g_clear_error (&error);
|
||||
show_error = TRUE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue