fstab-generator: log_oom() if automount_name is null

This commit is contained in:
WANG Chao
2013-09-14 14:11:35 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent b09b841398
commit 591e3ca379
+1 -1
View File
@@ -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);