summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stream/stream_pvr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_pvr.c b/stream/stream_pvr.c
index 12a2c8d5f5..8b5251cb06 100644
--- a/stream/stream_pvr.c
+++ b/stream/stream_pvr.c
@@ -190,7 +190,7 @@ pvr_uninit (struct pvr_t *pvr)
return;
/* close device */
- if (pvr->dev_fd)
+ if (pvr->dev_fd != -1)
close (pvr->dev_fd);
free (pvr->video_dev);