Revision 668e3cac
b/qjson.c | ||
---|---|---|
53 | 53 |
return qobject_from_jsonv(string, NULL); |
54 | 54 |
} |
55 | 55 |
|
56 |
/* |
|
57 |
* IMPORTANT: This function aborts on error, thus it must not |
|
58 |
* be used with untrusted arguments. |
|
59 |
*/ |
|
56 | 60 |
QObject *qobject_from_jsonf(const char *string, ...) |
57 | 61 |
{ |
58 | 62 |
QObject *obj; |
... | ... | |
62 | 66 |
obj = qobject_from_jsonv(string, &ap); |
63 | 67 |
va_end(ap); |
64 | 68 |
|
69 |
assert(obj != NULL); |
|
65 | 70 |
return obj; |
66 | 71 |
} |
67 | 72 |
|
Also available in: Unified diff