From 75d1bf9addbd8bb7ca64d773883f6feef54b2d8c Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Sat, 1 Feb 2020 21:47:51 -0800 Subject: mount.c: fix an error check. Found by GCC 9: toys/lsb/mount.c:188:22: warning: '%s' directive argument is null [-Wformat-overflow=] --- toys/lsb/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') diff --git a/toys/lsb/mount.c b/toys/lsb/mount.c index 5bf300db..6b1dfa46 100644 --- a/toys/lsb/mount.c +++ b/toys/lsb/mount.c @@ -185,7 +185,7 @@ static void mount_filesystem(char *dev, char *dir, char *type, if (strstart(&dev, "UUID=")) { char *s = tortoise(0, (char *[]){"blkid", "-U", dev, 0}); - if (!dev) return error_msg("No uuid %s", dev); + if (!s) return error_msg("No uuid %s", dev); dev = s; } -- cgit v1.2.3