Fix crash when encoding boolean properties.

This commit is contained in:
Eric Fischer
2015-04-10 13:03:11 -07:00
parent ed2f968b4e
commit d64328ac35
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -544,7 +544,7 @@ int read_json(int argc, char **argv, char *fname, const char *layername, int max
m++;
} else if (properties->values[i] != NULL && (properties->values[i]->type == JSON_TRUE || properties->values[i]->type == JSON_FALSE)) {
metatype[m] = VT_BOOLEAN;
metaval[m] = properties->values[i]->string;
metaval[m] = properties->values[i]->type == JSON_TRUE ? "true" : "false";
m++;
} else if (properties->values[i] != NULL && (properties->values[i]->type == JSON_NULL)) {
;