summaryrefslogtreecommitdiff
path: root/src/fstab-generator
diff options
context:
space:
mode:
authorWANG Chao <chaowang@redhat.com>2013-08-13 16:38:19 +0800
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-08-14 22:38:09 -0400
commit01264ad1cc27ecaa059857429ed1b4f3994b26c3 (patch)
treea35b14aceca26185c5c0a4f3d6e70d6308d0914f /src/fstab-generator
parentca08063781666a530993f7c88db1256044689c24 (diff)
fstab-generator: log_oom() if automount_name is null
Diffstat (limited to 'src/fstab-generator')
-rw-r--r--src/fstab-generator/fstab-generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
index 5a2074ec7f..2a779bbccf 100644
--- a/src/fstab-generator/fstab-generator.c
+++ b/src/fstab-generator/fstab-generator.c
@@ -351,7 +351,7 @@ static int add_mount(
if (automount && !path_equal(where, "/")) {
automount_name = unit_name_from_path(where, ".automount");
- if (!name)
+ if (!automount_name)
return log_oom();
automount_unit = strjoin(arg_dest, "/", automount_name, NULL);