volume_id: fix a buglet introduced by is_prefixed_with() conversion

Signed-off-by: Alfonso Ranieri <alforan@tin.it>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Alfonso Ranieri 2015-04-14 14:32:39 +02:00 committed by Denys Vlasenko
parent e0ddb65cb2
commit a90490fb69
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ int resolve_mount_spec(char **fsname)
if (is_prefixed_with(*fsname, "UUID="))
tmp = get_devname_from_uuid(*fsname + 5);
else if (is_prefixed_with(*fsname, "LABEL=") == 0)
else if (is_prefixed_with(*fsname, "LABEL="))
tmp = get_devname_from_label(*fsname + 6);
if (tmp == *fsname)