commit | acceb4d99fcdabded6ba432402365adb63205196 | [log] [tgz] |
---|---|---|
author | Anthony Liguori <aliguori@us.ibm.com> | Fri Sep 02 12:34:44 2011 -0500 |
committer | Luiz Capitulino <lcapitulino@redhat.com> | Tue Oct 04 11:00:46 2011 -0300 |
tree | 1447cab6860bfa9e92a15e46c8b05346546a8ac5 | |
parent | d11cf8cc80d946dfc9a23597cd9a0bb1c487cfa7 [diff] [blame] |
error: let error_is_type take a NULL error Reported-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
diff --git a/error.c b/error.c index b802752..68c0039 100644 --- a/error.c +++ b/error.c
@@ -97,6 +97,10 @@ char *ptr; char *end; + if (!err) { + return false; + } + ptr = strstr(fmt, "'class': '"); assert(ptr != NULL); ptr += strlen("'class': '");