summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-05-02 08:21:56 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-05-02 08:21:56 +0200
commit74a1b26ffb576205bbdc5e94aeb503306eb6aabc (patch)
tree5122c48de266fba24ea7dd1d4d8f40a4b6fe5951 /desktop
parentc4ed5807bda4d100c3fc053fbb3f738d3c2d24e3 (diff)
-Werror,-Wlogical-not-parentheses
Change-Id: I0ed6445964523b17ca5635d4d26cd429ff60c294
Diffstat (limited to 'desktop')
-rw-r--r--desktop/unx/source/pagein.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/unx/source/pagein.c b/desktop/unx/source/pagein.c
index 03b26dc00419..181637fc94e4 100644
--- a/desktop/unx/source/pagein.c
+++ b/desktop/unx/source/pagein.c
@@ -52,7 +52,7 @@ int isRotational(char const * path)
struct stat out;
int major, minor;
char type;
- if( !stat( path , &out ) == 0)
+ if(stat( path , &out ) == -1)
return 1;
major = major(out.st_dev);
minor = 0; /* minor(out.st_dev); only the device itself has a queue */