diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-10-10 08:21:46 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-10-10 08:21:46 -0500 |
commit | ebffe2afceb1a17b5d134b5debf553955fe5ea1a (patch) | |
tree | 223ee0630a56a8d1410d5ad283996486ec434ab7 /error.c | |
parent | 057643f6c4751651ab640edb9b445cb3816edffc (diff) | |
parent | 5bc465e4b1b6f4582a400c0a7033a1c841744278 (diff) |
Merge remote-tracking branch 'qmp/queue/qmp' into staging
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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': '"); |