From a46c1a3e1b4ce370ecb68b5b3afb7f76297a4fd4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 27 Mar 2011 23:45:40 -0400 Subject: 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. --- libgps_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgps_core.c') 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; -- cgit v1.2.1