diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-07 18:07:24 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-07 18:09:20 -0700 |
commit | cb8bbc06de0baf2dff4a703e6d2bb47bdf90d896 (patch) | |
tree | d44fe16b289cae16669179cda7206b754833557a | |
parent | b9770941ae829ad2cb985efe809d6e3dd690648b (diff) |
define(): Avoid assigning constant string to non-const char *
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | parse.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -412,8 +412,9 @@ define(char *def, struct inclist *file) val++; if (!*val) - val = "1"; - define2(def, val, file); + define2(def, "1", file); + else + define2(def, val, file); } struct symtab ** |