summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-07 18:07:24 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-07 18:09:20 -0700
commitcb8bbc06de0baf2dff4a703e6d2bb47bdf90d896 (patch)
treed44fe16b289cae16669179cda7206b754833557a
parentb9770941ae829ad2cb985efe809d6e3dd690648b (diff)
define(): Avoid assigning constant string to non-const char *
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--parse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index d14cbf8..c7aad8c 100644
--- a/parse.c
+++ b/parse.c
@@ -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 **