summaryrefslogtreecommitdiff
path: root/src/fstab-generator
diff options
context:
space:
mode:
authorMantas Mikulėnas <grawity@gmail.com>2013-03-25 21:10:29 +0200
committerLennart Poettering <lennart@poettering.net>2013-03-25 20:14:29 +0100
commit1b036593b76614dd05942a78120c151161cccc0f (patch)
tree94672332674dcc52f8ec777b0e45c7e02ff455e3 /src/fstab-generator
parent5ec6b15b65304d94dc1c8cbad05c8b996b470d3a (diff)
fstab-generator: add missing strempty() calls
Diffstat (limited to 'src/fstab-generator')
-rw-r--r--src/fstab-generator/fstab-generator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
index 7f065eb353..9754f3a69a 100644
--- a/src/fstab-generator/fstab-generator.c
+++ b/src/fstab-generator/fstab-generator.c
@@ -403,7 +403,7 @@ static int parse_fstab(const char *prefix, bool initrd) {
if (errno == ENOENT)
return 0;
- log_error("Failed to open %s/etc/fstab: %m", prefix);
+ log_error("Failed to open %s/etc/fstab: %m", strempty(prefix));
return -errno;
}
@@ -415,7 +415,7 @@ static int parse_fstab(const char *prefix, bool initrd) {
continue;
what = fstab_node_to_udev_node(me->mnt_fsname);
- where = strjoin(prefix, me->mnt_dir, NULL);
+ where = strjoin(strempty(prefix), me->mnt_dir, NULL);
if (!what || !where) {
r = log_oom();
goto finish;