diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-03-27 23:45:40 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-03-27 23:45:40 -0400 |
commit | a46c1a3e1b4ce370ecb68b5b3afb7f76297a4fd4 (patch) | |
tree | 18f84d70137dce80016e13e66bba2e752916994b /libgps_core.c | |
parent | b431a4a76c673532908b804ec0e9a9f5af2831f1 (diff) | |
download | gpsd-a46c1a3e1b4ce370ecb68b5b3afb7f76297a4fd4.tar.gz |
Part repair of the shm dispatch.
Uh oh. One of my rests was broken. The gps_shm_* functions work, but
dispatch to them through the public API is broken. This partway fixes it.
Diffstat (limited to 'libgps_core.c')
-rw-r--r-- | libgps_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgps_core.c b/libgps_core.c index 3731f695..a326f4a3 100644 --- a/libgps_core.c +++ b/libgps_core.c @@ -57,7 +57,7 @@ int gps_open(/*@null@*/const char *host, /*@null@*/const char *port, return -1; #ifdef SHM_EXPORT_ENABLE - if (strcmp(port, GPSD_SHARED_MEMORY) == 0) { + if (host != NULL && strcmp(host, GPSD_SHARED_MEMORY) == 0) { status = gps_shm_open(gpsdata); if (status == -1) status = SHM_NOSHARED; |