summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vconsole-setup.c4
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;
}