From 462c4f60c92ccf28dbcab56a6c1befe1722a6374 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 22 Sep 2012 11:23:37 -0400 Subject: Fix a dangerous typo caught by Coverity. All regression tests pass. --- 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 855154fd..1c68dbb3 100644 --- a/libgps_core.c +++ b/libgps_core.c @@ -140,7 +140,7 @@ int gps_read(struct gps_data_t *gpsdata) #endif /* SHM_EXPORT_ENABLE */ #ifdef SOCKET_EXPORT_ENABLE - if (status == -1 && BAD_SOCKET((intptr_t)(gpsdata->gps_fd))) { + if (status == -1 && !BAD_SOCKET((intptr_t)(gpsdata->gps_fd))) { status = gps_sock_read(gpsdata); } #endif /* SOCKET_EXPORT_ENABLE */ -- cgit v1.2.1