Commit b37f8b80 authored by Philip Withnall's avatar Philip Withnall

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.
parent 38015036
......@@ -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));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment