From: Anthony Liguori Date: Fri, 2 Sep 2011 17:34:44 +0000 (-0500) Subject: error: let error_is_type take a NULL error X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~5198^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=acceb4d99fcdabded6ba432402365adb63205196;p=sdk%2Femulator%2Fqemu.git error: let error_is_type take a NULL error Reported-by: Luiz Capitulino Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- diff --git a/error.c b/error.c index b802752..68c0039 100644 --- a/error.c +++ b/error.c @@ -97,6 +97,10 @@ bool error_is_type(Error *err, const char *fmt) char *ptr; char *end; + if (!err) { + return false; + } + ptr = strstr(fmt, "'class': '"); assert(ptr != NULL); ptr += strlen("'class': '");