From 43df8ff3ac4156b99d1e288d666ea1a77584b3f8 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 9 Oct 2024 10:59:57 -0400 Subject: str.c: fix realloc(s) --- src/str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/str.c') diff --git a/src/str.c b/src/str.c index 56ea893..9f63c72 100644 --- a/src/str.c +++ b/src/str.c @@ -197,7 +197,7 @@ char *join_ex(char *separator, ...) { if (tmp == NULL) { perror("join_ex realloc failed"); return NULL; - } else if (tmp != argv) { + } else { argv = tmp; } size += strlen(current) + separator_len; -- cgit