chiark / gitweb /
parse_env_file() - return empty value strings like FOO="" as NULL value
[elogind.git] / src / vconsole-setup.c
index 9e5d65da657ecfbb4d7664673a24b6fc86145be5..7703361e33ef6029f372a04006d1806fe989a452 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 && map[0] != '\0') {
+        if (map) {
                 args[i++] = "-m";
                 args[i++] = map;
         }
-        if (unimap && unimap[0] != '\0') {
+        if (unimap) {
                 args[i++] = "-u";
                 args[i++] = unimap;
         }