Commit 034f435b authored by Matthias Clasen's avatar Matthias Clasen Committed by Michael Catanzaro

Fix a null dereference

Coverity is flagging this.

https://bugzilla.gnome.org/show_bug.cgi?id=780218
parent 8aedaf5f
......@@ -797,7 +797,7 @@ init_css (GduWindow *window)
provider = gtk_css_provider_new ();
file = g_file_new_for_uri ("resource:///org/gnome/Disks/ui/gdu.css");
error = NULL;
if (!gtk_css_provider_load_from_file (provider, file, NULL))
if (!gtk_css_provider_load_from_file (provider, file, &error))
{
g_warning ("Can’t parse custom CSS: %s\n", error->message);
g_error_free (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