mirror of
https://github.com/xemu-project/xemu.git
synced 2025-04-02 11:11:48 -04:00
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>
This commit is contained in:
parent
d11cf8cc80
commit
acceb4d99f
1 changed files with 4 additions and 0 deletions
4
error.c
4
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': '");
|
||||
|
|
Loading…
Add table
Reference in a new issue