summaryrefslogtreecommitdiff
path: root/gpsutils.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-01-05 21:47:53 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-01-05 21:47:53 +0000
commitb733f7ba16cc88b9dca875998c57bbb09b113b22 (patch)
tree6ddae3b1683a3f4459f0d17ad702aea5a7ab96a7 /gpsutils.c
parentce47fae04c9742560ae5dedb92c485263dcb89f9 (diff)
downloadgpsd-b733f7ba16cc88b9dca875998c57bbb09b113b22.tar.gz
This diff goes most of the way to getting us splint-clean again.
Diffstat (limited to 'gpsutils.c')
-rw-r--r--gpsutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsutils.c b/gpsutils.c
index 4bf4580e..e7b06d3f 100644
--- a/gpsutils.c
+++ b/gpsutils.c
@@ -178,7 +178,7 @@ double iso8601_to_unix(/*@in@*/char *isotime)
struct tm tm;
/*@i1@*/dp = strptime(isotime, "%Y-%m-%dT%H:%M:%S", &tm);
- if (dp && *dp == '.')
+ if (dp != NULL && *dp == '.')
usec = strtod(dp, NULL);
else
usec = 0;