summaryrefslogtreecommitdiff
path: root/shared_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-28 18:53:11 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-28 18:53:11 -0400
commitc651976d406e14ee43b48357c86b7b78d6e94821 (patch)
tree308816b29c9992ff89938013a6226bf9deb49c4f /shared_json.c
parent2807b4d18ae2a229c45e54f8423015c1ef8c371d (diff)
downloadgpsd-c651976d406e14ee43b48357c86b7b78d6e94821.tar.gz
Scan-build and splint cleanup. All regression tests pass.
Diffstat (limited to 'shared_json.c')
-rw-r--r--shared_json.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared_json.c b/shared_json.c
index b685b8cc..076239d8 100644
--- a/shared_json.c
+++ b/shared_json.c
@@ -59,6 +59,7 @@ int json_device_read(const char *buf,
/*@ +fullinitblock @*/
int status;
+ tbuf[0] = '\0';
status = json_read_object(buf, json_attrs_device, endptr);
if (status != 0)
return status;