Commit d659151a authored by Ondrej Holy's avatar Ondrej Holy

network: Check variable before dereferencing

It seems that the error variable may be NULL at this point in
some cases as per the bug reports, but I don't really have any
idea why. Let's check the error variable before dereferencing
and see if it helps to reduce the number of bug reports...
parent 669f1e50
......@@ -359,7 +359,7 @@ recompute_files (GVfsBackendNetwork *backend)
char *uri = g_file_get_uri (server_file);
g_debug ("Couldn't create directory monitor on %s. Error: %s\n",
uri, error->message);
uri, error ? error->message : "");
g_free (uri);
g_clear_error (&error);
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