projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d11cf8c
)
error: let error_is_type take a NULL error
author
Anthony Liguori
<aliguori@us.ibm.com>
Fri, 2 Sep 2011 17:34:44 +0000
(12:34 -0500)
committer
Luiz Capitulino
<lcapitulino@redhat.com>
Tue, 4 Oct 2011 14:00:46 +0000
(11:00 -0300)
Reported-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
error.c
patch
|
blob
|
history
diff --git
a/error.c
b/error.c
index
b802752
..
68c0039
100644
(file)
--- 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': '");