From 915d22e4f09e8f6d7fb2e7a7456f8b5908bd7f98 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Tue, 28 Sep 2010 11:49:47 +0200 Subject: [PATCH] vconsole-setup: ignore empty strings like FOO="", imported from config files --- src/vconsole-setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5