projects
/
jansson.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Better argument validation
[jansson.git]
/
test
/
testprogs
/
test_simple.c
diff --git
a/test/testprogs/test_simple.c
b/test/testprogs/test_simple.c
index
86f841b
..
4491ed2
100644
(file)
--- a/
test/testprogs/test_simple.c
+++ b/
test/testprogs/test_simple.c
@@
-58,6
+58,10
@@
int main()
fail("invalid string value");
json_decref(value);
+ value = json_string(NULL);
+ if(value)
+ fail("json_string(NULL) failed");
+
value = json_integer(123);
if(!value)
fail("json_integer failed");