summaryrefslogtreecommitdiff
path: root/libgpsd_core.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-05-27 09:49:21 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-05-27 09:49:21 +0000
commit61ec32f1c2c65efe8f1fec8e3b88a299dac772a8 (patch)
treec829fdfbab4f0b07771a0c74b56bff3750eae1fe /libgpsd_core.c
parent8121f615217a13725f34da97062b16a022271ec8 (diff)
downloadgpsd-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.c2
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;