diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2010-09-28 11:49:47 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2010-09-28 11:49:47 +0200 |
commit | 915d22e4f09e8f6d7fb2e7a7456f8b5908bd7f98 (patch) | |
tree | ff6c7e952d175eebcb918b606b675fdec7217217 /src/vconsole-setup.c | |
parent | 4bb2357f77c875976de5e238a5783e4e136b37b5 (diff) |
vconsole-setup: ignore empty strings like FOO="", imported from config files
Diffstat (limited to 'src/vconsole-setup.c')
-rw-r--r-- | src/vconsole-setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vconsole-setup.c b/src/vconsole-setup.c index 0fd426c6e6..047a153b87 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; } |