aboutsummaryrefslogtreecommitdiffstats
path: root/libmount/src
diff options
context:
space:
mode:
Diffstat (limited to 'libmount/src')
-rw-r--r--libmount/src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/utils.c b/libmount/src/utils.c
index b6d95696ad..056c5d4fb0 100644
--- a/libmount/src/utils.c
+++ b/libmount/src/utils.c
@@ -1364,7 +1364,7 @@ static int test_filesystems(struct libmnt_test *ts __attribute__((unused)),
return -1;
rc = mnt_get_filesystems(&filesystems, argc == 2 ? argv[1] : NULL);
- if (!rc) {
+ if (!rc && filesystems) {
char **p;
for (p = filesystems; *p; p++)
printf("%s\n", *p);