kconfig: drop 'boolean' keyword
[carl9170fw.git] / config / symbol.c
index 35e0937aa6a6fd3b47f15974f6df121c41c55488..c9123ed2b791ad2de18450485f11ed15984cf448 100644 (file)
@@ -77,7 +77,7 @@ const char *sym_type_name(enum symbol_type type)
 {
        switch (type) {
        case S_BOOLEAN:
 {
        switch (type) {
        case S_BOOLEAN:
-               return "boolean";
+               return "bool";
        case S_TRISTATE:
                return "tristate";
        case S_INT:
        case S_TRISTATE:
                return "tristate";
        case S_INT:
@@ -907,6 +907,10 @@ const char *sym_expand_string_value(const char *in)
        char *res;
        size_t reslen;
 
        char *res;
        size_t reslen;
 
+       /*
+        * Note: 'in' might come from a token that's about to be
+        * freed, so make sure to always allocate a new string
+        */
        reslen = strlen(in) + 1;
        res = xmalloc(reslen);
        res[0] = '\0';
        reslen = strlen(in) + 1;
        res = xmalloc(reslen);
        res[0] = '\0';