aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ismounted.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ismounted.c')
-rw-r--r--lib/ismounted.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ismounted.c b/lib/ismounted.c
index fe4c329a7c..9a20b23673 100644
--- a/lib/ismounted.c
+++ b/lib/ismounted.c
@@ -272,7 +272,7 @@ static int is_swap_device(const char *file)
/* Skip the first line */
if (!fgets(buf, sizeof(buf), f))
goto leave;
- if (*buf && strncmp(buf, "Filename\t", 9))
+ if (*buf && strncmp(buf, "Filename\t", 9) != 0)
/* Linux <=2.6.19 contained a bug in the /proc/swaps
* code where the header would not be displayed
*/