summaryrefslogtreecommitdiff
path: root/ais_json.c
diff options
context:
space:
mode:
Diffstat (limited to 'ais_json.c')
-rw-r--r--ais_json.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ais_json.c b/ais_json.c
index ff32b665..79ead5aa 100644
--- a/ais_json.c
+++ b/ais_json.c
@@ -130,6 +130,7 @@ int json_ais_read(const char *buf,
} else if (strstr(buf, "\"type\":24,") != NULL) {
status = json_read_object(buf, json_ais24, endptr);
} else {
+ *endptr = NULL;
return JSON_ERR_MISC;
}
return status;