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:
Philip Withnall 2013-11-26 15:06:48 +00:00
parent 380150361b
commit b37f8b80b4

View File

@ -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));