chiark / gitweb /
vconsole-setup: ignore empty strings like FOO="", imported from config files
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 28 Sep 2010 09:49:47 +0000 (11:49 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 28 Sep 2010 09:49:47 +0000 (11:49 +0200)
src/vconsole-setup.c

index 0fd426c..047a153 100644 (file)
@@ -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;
         }