projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9858cec
)
preproc.c: use nasm_strdup() rather than naked strdup()
author
H. Peter Anvin
<hpa@zytor.com>
Mon, 8 Nov 2010 16:36:36 +0000
(08:36 -0800)
committer
H. Peter Anvin
<hpa@zytor.com>
Mon, 8 Nov 2010 16:37:14 +0000
(08:37 -0800)
preproc.c
patch
|
blob
|
history
diff --git
a/preproc.c
b/preproc.c
index c223fb7282e4dc095abba37c31f281b80c0bac6e..8c53cfa824ce39ea11b9e151c3375a8c88ac1613 100644
(file)
--- a/
preproc.c
+++ b/
preproc.c
@@
-1253,7
+1253,7
@@
static Token *copy_Token(Token * tline)
t = freeTokens;
freeTokens = t->next;
t->next = NULL;
- t->text =
((tt->text != NULL) ? strdup(tt->text) : NULL)
;
+ t->text =
tt->text ? nasm_strdup(tt->text) : NULL
;
t->a.mac = tt->a.mac;
t->a.len = tt->a.len;
t->type = tt->type;