diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-05-11 14:41:31 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-05-11 14:42:02 -0400 |
commit | 2a62d13b260430097cb4adab0f64901cfb2b13dc (patch) | |
tree | 4b07bb3f7c877f6e1b1d11500ba017c9551bb6f1 /libgps_core.c | |
parent | e5fe5a561e6257a2d1f16a4e9247b20e2c214cd5 (diff) | |
download | gpsd-2a62d13b260430097cb4adab0f64901cfb2b13dc.tar.gz |
Still working on pacifying Coverity. All regression tests pass.
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 687b8b82..d3822a48 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) { + if (status == -1 && gpsdata->gps_fd != -1) { status = gps_sock_read(gpsdata); } #endif /* SOCKET_EXPORT_ENABLE */ |