summaryrefslogtreecommitdiff
path: root/subframe.c
diff options
context:
space:
mode:
authorChris Kuethe <ckuethe@users.berlios.de>2011-01-04 09:22:38 -0800
committerChris Kuethe <ckuethe@users.berlios.de>2011-01-04 09:22:38 -0800
commitff080551525c951ae3fb8434637248a3e0b2014f (patch)
treea4d549891bde53ecfa150ba87264436564b2b787 /subframe.c
parenta62e78ad4be9553b65cfdb0cb5d327a07290f75c (diff)
downloadgpsd-ff080551525c951ae3fb8434637248a3e0b2014f.tar.gz
explicitly initialize variable
Diffstat (limited to 'subframe.c')
-rw-r--r--subframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subframe.c b/subframe.c
index 5cbccfdf..2d34bade 100644
--- a/subframe.c
+++ b/subframe.c
@@ -448,7 +448,7 @@ void gpsd_interpret_subframe(struct gps_device_t *session,
*/
/* FIXME!! I really doubt this is Big Endian compatible */
uint8_t preamble;
- int i; /* handy loop counter */
+ int i = 0; /* handy loop counter */
struct subframe *subp = &subframe;
gpsd_report(LOG_IO,
"50B: gpsd_interpret_subframe: (%d) "