diff options
Diffstat (limited to 'xgpsspeed.c')
-rw-r--r-- | xgpsspeed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xgpsspeed.c b/xgpsspeed.c index a9489e1c..61c38f0c 100644 --- a/xgpsspeed.c +++ b/xgpsspeed.c @@ -42,7 +42,7 @@ static void update_display(struct gps_data_t *gpsdata, char *buf UNUSED, size_t len UNUSED, int level UNUSED) { /* this is where we implement source-device filtering */ - if (gpsdata->dev.path[0] && source.device!=NULL && strcmp(source.device, gpsdata->dev.path) != 0) + if (gpsdata->dev.path[0]!='\0' && source.device!=NULL && strcmp(source.device, gpsdata->dev.path) != 0) return; else { int temp_int = (int)rint(gpsdata->fix.speed * speedfactor); |