fixed bug in example
This commit is contained in:
+3
-1
@@ -19,7 +19,8 @@ int main()
|
||||
// ..error?
|
||||
if(val == NULL)
|
||||
fprintf(stderr, "Failed to parse!\n");
|
||||
|
||||
else
|
||||
{
|
||||
char *name;
|
||||
int age;
|
||||
|
||||
@@ -37,6 +38,7 @@ int main()
|
||||
}
|
||||
|
||||
printf("name: %s, age: %d\n", name, age);
|
||||
}
|
||||
|
||||
// Now free everything!
|
||||
xj_alloc_del(alloc);
|
||||
|
||||
Reference in New Issue
Block a user