]> err.no Git - systemd/commitdiff
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 0fd426c6e6f193eb938badecd6cfa4f10bedf657..047a153b87d38b877eceabd8dae83c3063e5a46a 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;
         }