[Libreoffice-commits] core.git: desktop/unx
Stephan Bergmann
sbergman at redhat.com
Mon May 2 06:22:21 UTC 2016
desktop/unx/source/pagein.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 74a1b26ffb576205bbdc5e94aeb503306eb6aabc
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon May 2 08:21:56 2016 +0200
-Werror,-Wlogical-not-parentheses
Change-Id: I0ed6445964523b17ca5635d4d26cd429ff60c294
diff --git a/desktop/unx/source/pagein.c b/desktop/unx/source/pagein.c
index 03b26dc..181637f 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 */
More information about the Libreoffice-commits
mailing list