Don't print error if no color string is parsed.
authorMichael Andres <ma@suse.de>
Wed, 19 Dec 2012 08:46:25 +0000 (09:46 +0100)
committerMichael Andres <ma@suse.de>
Wed, 19 Dec 2012 08:46:25 +0000 (09:46 +0100)
src/utils/colors.cc

index cf53bfc..de705d0 100644 (file)
@@ -26,6 +26,7 @@ Color::Color(const string & color_str)
 string Color::parse(const string & value)
 {
   static map<string, string> str2esc = {
+    { "",              ""                      },      // no color
     { "green",         COLOR_GREEN             },
     { "lightgreen",    COLOR_GREEN_LIGHT       },
     { "red",           COLOR_RED               },