Extra check in reply_forward (fix 5 for NB#126941)
authorJose Dapena Paz <jdapena@igalia.com>
Mon, 20 Jul 2009 10:02:58 +0000 (12:02 +0200)
committerJose Dapena Paz <jdapena@igalia.com>
Mon, 20 Jul 2009 10:21:30 +0000 (12:21 +0200)
src/modest-ui-actions.c

index f3fb660..9c7e9c6 100644 (file)
@@ -1928,7 +1928,7 @@ reply_forward (ReplyForwardAction action, ModestWindow *win)
        ReplyForwardHelper *rf_helper = NULL;
        guint reply_forward_type;
 
-       g_return_if_fail (MODEST_IS_WINDOW(win));
+       g_return_if_fail (win && MODEST_IS_WINDOW(win));
 
        /* we check for low-mem; in that case, show a warning, and don't allow
         * reply/forward (because it could potentially require a lot of memory */