mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-08-23 10:33:50 -04:00
Merge 10ab9d210455b29233733e742feb732492231c26 into ada267ec8cb708317e707158f0296fab5ccb794e
This commit is contained in:
commit
fde1f14866
@ -7076,7 +7076,7 @@ static int expand_mmacro(Token * tline)
|
|||||||
*/
|
*/
|
||||||
nasm_newn(paramlen, nparam+1);
|
nasm_newn(paramlen, nparam+1);
|
||||||
|
|
||||||
for (i = 1; (t = params[i]); i++) {
|
for (i = 1; i < nparam+1 && (t = params[i]); i++) {
|
||||||
bool braced = false;
|
bool braced = false;
|
||||||
int brace = 0;
|
int brace = 0;
|
||||||
int white = 0;
|
int white = 0;
|
||||||
|
@ -104,8 +104,10 @@ void *nasm_realloc(void *q, size_t size)
|
|||||||
|
|
||||||
void nasm_free(void *q)
|
void nasm_free(void *q)
|
||||||
{
|
{
|
||||||
if (q)
|
if (q){
|
||||||
free(q);
|
free(q);
|
||||||
|
q = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char *nasm_strdup(const char *s)
|
char *nasm_strdup(const char *s)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user