From: Kay Sievers Date: Tue, 28 Sep 2010 09:49:47 +0000 (+0200) Subject: vconsole-setup: ignore empty strings like FOO="", imported from config files X-Git-Tag: v11~55 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=915d22e4f09e8f6d7fb2e7a7456f8b5908bd7f98;p=systemd vconsole-setup: ignore empty strings like FOO="", imported from config files --- diff --git a/src/vconsole-setup.c b/src/vconsole-setup.c index 0fd426c6..047a153b 100644 --- a/src/vconsole-setup.c +++ b/src/vconsole-setup.c @@ -113,11 +113,11 @@ static int load_font(const char *vc, const char *font, const char *map, const ch args[i++] = "-C"; args[i++] = vc; args[i++] = font; - if (map) { + if (map && map[0] != '\0') { args[i++] = "-m"; args[i++] = map; } - if (unimap) { + if (unimap && unimap[0] != '\0') { args[i++] = "-u"; args[i++] = unimap; }