diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-11-18 21:40:28 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-11-18 21:40:28 +0000 |
commit | 6476cf248078df95580eb0a17fa852cc0b4fddb1 (patch) | |
tree | 4695715f88372d7cbcee929b77a9646fdcec5ba8 /gpsdecode.c | |
parent | 22474b8a4c37373c6dbfe87940f5a060ac40f27a (diff) | |
download | gpsd-6476cf248078df95580eb0a17fa852cc0b4fddb1.tar.gz |
End pointer returned by the JSON parser needs to be passed back up...
...so we can handle multiple responses per write.
Diffstat (limited to 'gpsdecode.c')
-rw-r--r-- | gpsdecode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsdecode.c b/gpsdecode.c index 77123400..939bd9e3 100644 --- a/gpsdecode.c +++ b/gpsdecode.c @@ -396,7 +396,7 @@ static void encode(FILE *fpin, bool repack, FILE *fpout) ++lineno; if (inbuf[0] == '#') continue; - status = libgps_json_unpack(inbuf, &gpsdata); + status = libgps_json_unpack(inbuf, &gpsdata, NULL); if (status != 0) { (void) fprintf(stderr, "gpsdecode: bailing out with status %d (%s) on line %d\n", status, json_error_string(status), lineno); exit(1); |