From: Karel Zak Date: Sat, 31 Jan 2009 00:50:26 +0000 (+0100) Subject: mount: fix typo in volume_id code X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19ac06a5c09e2a6ecc1c8d8ab85b2eaca0d6a61f;p=util-linux mount: fix typo in volume_id code Signed-off-by: Karel Zak --- diff --git a/mount/fsprobe_volumeid.c b/mount/fsprobe_volumeid.c index 949db829..b9b137b8 100644 --- a/mount/fsprobe_volumeid.c +++ b/mount/fsprobe_volumeid.c @@ -124,7 +124,7 @@ fsprobe_get_devname_by_uuid(const char *uuid) strcpy(dev, _PATH_DEV_BYUUID "/"); len = strlen(_PATH_DEV_BYUUID "/"); - if (!volume_id_encode_string(uuid, &dev[len], sizeof(dev) - len) != 0) + if (!volume_id_encode_string(uuid, &dev[len], sizeof(dev) - len)) return NULL; return canonicalize(dev); } @@ -139,7 +139,7 @@ fsprobe_get_devname_by_label(const char *label) return NULL; strcpy(dev, _PATH_DEV_BYLABEL "/"); len = strlen(_PATH_DEV_BYLABEL "/"); - if (!volume_id_encode_string(label, &dev[len], sizeof(dev) - len) != 0) + if (!volume_id_encode_string(label, &dev[len], sizeof(dev) - len)) return NULL; return canonicalize(dev); }