]> spindle.queued.net Git - midori/commitdiff
Fix a crash when failing to open a downloaded file
authorChristian Dywan <christian@twotoasts.de>
Fri, 24 Apr 2009 18:13:57 +0000 (20:13 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 24 Apr 2009 18:13:57 +0000 (20:13 +0200)
midori/sokoke.c

index 0cc7bf439ce7bb7c4eae520c84bb0db4adc4a68c..a6bb4c1e663969553f6e4b27cc0da4e12e115b18 100644 (file)
@@ -129,7 +129,8 @@ sokoke_show_uri (GdkScreen*   screen,
         g_free (command);
         if (result)
             return TRUE;
-        *error = NULL;
+        if (error)
+            *error = NULL;
     }
 
     return FALSE;