diff options
author | Lars Wirzenius <liw@liw.fi> | 2010-10-26 09:35:38 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2010-10-26 09:35:38 +0100 |
commit | 32467c0e8782b442c41069172d362e93ef878191 (patch) | |
tree | c32e93a99072ea2a998323c6d864e7e0b07ed57f /dynstr.c | |
parent | bc430e9f80e622833faeea7252d6ba5aa5552bcb (diff) | |
download | dynstr-32467c0e8782b442c41069172d362e93ef878191.tar.gz |
Change calls to dynstr_cat to use (void*)NULL instead of plain NULL.
This avoids problems when NULL is #defined as 0, and is being used
in a variable argument list.
Thanks to Richard Braakman for pointing this out.
Diffstat (limited to 'dynstr.c')
-rw-r--r-- | dynstr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -446,7 +446,7 @@ static Dynstr *readline_helper(int (*callback)(FILE *, int), FILE *f, int fd) temp1 = dynstr_new_from_memory(buf, buflen); if (temp1 == NULL) goto error; - temp2 = dynstr_cat(line, temp1, NULL); + temp2 = dynstr_cat(line, temp1, (void *) NULL); if (temp2 == NULL) goto error; dynstr_free(temp1); @@ -463,7 +463,7 @@ static Dynstr *readline_helper(int (*callback)(FILE *, int), FILE *f, int fd) temp1 = dynstr_new_from_memory(buf, buflen); if (temp1 == NULL) goto error; - temp2 = dynstr_cat(line, temp1, NULL); + temp2 = dynstr_cat(line, temp1, (void *) NULL); if (temp2 == NULL) goto error; dynstr_free(temp1); |