summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-01-12 13:46:39 +0100
committerDaniel Mack <daniel@zonque.org>2015-01-12 14:01:45 +0100
commit0c47569ac9eb365ebeb9342f47fb98d52bcc4704 (patch)
tree03cfb07dfeb37ba5a6e9eb9d7a5a1bec4a489c08 /src/core
parentb9e616cc2256501f484f138999ec63a0094f5c4f (diff)
core/mount: use isempty() to check for empty strings
strempty() will return an empty string in case the input parameter is a NULL pointer. The correct test to check for an empty string is isempty(), so use that instead. This fixes a regression from commit 17a1c59 ("core/mount: filter out noauto,auto,nofail,fail options").
Diffstat (limited to 'src/core')
-rw-r--r--src/core/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/mount.c b/src/core/mount.c
index 9f7c4d20b3..5c87ed31ef 100644
--- a/src/core/mount.c
+++ b/src/core/mount.c
@@ -932,7 +932,7 @@ static void mount_enter_mounting(Mount *m) {
r = exec_command_append(m->control_command, "-s", NULL);
if (r >= 0 && m->parameters_fragment.fstype)
r = exec_command_append(m->control_command, "-t", m->parameters_fragment.fstype, NULL);
- if (r >= 0 && !strempty(opts))
+ if (r >= 0 && !isempty(opts))
r = exec_command_append(m->control_command, "-o", opts, NULL);
} else
r = -ENOENT;