Fix a logic error
This commit is contained in:
parent
eb44b6fb91
commit
5e10f0ba54
2
fiv-io.c
2
fiv-io.c
@ -3165,7 +3165,7 @@ static char *
|
|||||||
model_strappend(char **p, const char *string, size_t size)
|
model_strappend(char **p, const char *string, size_t size)
|
||||||
{
|
{
|
||||||
if (!string)
|
if (!string)
|
||||||
return *p;
|
return NULL;
|
||||||
|
|
||||||
char *destination = memcpy(*p, string, size);
|
char *destination = memcpy(*p, string, size);
|
||||||
*p += size;
|
*p += size;
|
||||||
|
Loading…
Reference in New Issue
Block a user