aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-04-14 07:52:53 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-04-14 07:53:21 +0200
commit5e10f0ba543ddcc269ffa16dc3745907548e546e (patch)
treea33d028242e96273e6efc19f3f8d5ae23941e3e1
parenteb44b6fb91e5d4edbeb7cbb86a734836ed143cb8 (diff)
downloadfiv-5e10f0ba543ddcc269ffa16dc3745907548e546e.tar.gz
fiv-5e10f0ba543ddcc269ffa16dc3745907548e546e.tar.xz
fiv-5e10f0ba543ddcc269ffa16dc3745907548e546e.zip
Fix a logic error
-rw-r--r--fiv-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fiv-io.c b/fiv-io.c
index 004debb..7347bd1 100644
--- a/fiv-io.c
+++ b/fiv-io.c
@@ -3165,7 +3165,7 @@ static char *
model_strappend(char **p, const char *string, size_t size)
{
if (!string)
- return *p;
+ return NULL;
char *destination = memcpy(*p, string, size);
*p += size;