gtkprintunixdialog: Remove a redundant (GFile != NULL) check
g_file_new_for_uri() is guaranteed to return a non-NULL value, so this check was redundant, and was confusing the static analyser into returning a false positive, where it thought the file could be NULL. https://bugzilla.gnome.org/show_bug.cgi?id=712760
This commit is contained in:
parent
380150361b
commit
b37f8b80b4
@ -659,8 +659,7 @@ error_dialogs (GtkPrintUnixDialog *print_dialog,
|
||||
{
|
||||
file = g_file_new_for_uri (option->value);
|
||||
|
||||
if (file != NULL &&
|
||||
g_file_query_exists (file, NULL))
|
||||
if (g_file_query_exists (file, NULL))
|
||||
{
|
||||
toplevel = get_toplevel (GTK_WIDGET (print_dialog));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user