From: Christian Dywan Date: Fri, 24 Apr 2009 18:13:57 +0000 (+0200) Subject: Fix a crash when failing to open a downloaded file X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c31d9936d916f4c7159f4917ee3f61fd13e14e4f;p=midori Fix a crash when failing to open a downloaded file --- diff --git a/midori/sokoke.c b/midori/sokoke.c index 0cc7bf43..a6bb4c1e 100644 --- a/midori/sokoke.c +++ b/midori/sokoke.c @@ -129,7 +129,8 @@ sokoke_show_uri (GdkScreen* screen, g_free (command); if (result) return TRUE; - *error = NULL; + if (error) + *error = NULL; } return FALSE;