diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-05-27 09:49:21 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-05-27 09:49:21 +0000 |
commit | 61ec32f1c2c65efe8f1fec8e3b88a299dac772a8 (patch) | |
tree | c829fdfbab4f0b07771a0c74b56bff3750eae1fe /libgpsd_core.c | |
parent | 8121f615217a13725f34da97062b16a022271ec8 (diff) | |
download | gpsd-61ec32f1c2c65efe8f1fec8e3b88a299dac772a8.tar.gz |
989 splint warnings. Fix getw() macro bug pointed out by Rob Janssen.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index abb3978c..5c645b8b 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -187,7 +187,7 @@ int gpsd_activate(struct gps_device_t *session) static int is_input_waiting(int fd) { - int count; + int count = 0; if (fd < 0 || ioctl(fd, FIONREAD, &count) < 0) return -1; return count; |