commit de105fcfc5bf73d8511b6ff654c55653e9743dbb
parent 76c92f8e9769909af7ba229a420fe36db5a0e366
Author: hhvn <dev@hhvn.uk>
Date: Sat, 16 Jul 2022 12:31:39 +0100
Remove uneeded strdup() on call to elem_create()
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zygo.c b/zygo.c
@@ -518,7 +518,7 @@ go(Elem *e, int mhist, int notls) {
gotall = 1;
} else {
if (dup->type == '0')
- elem = elem_create(0, 'i', estrdup(line), NULL, NULL, NULL);
+ elem = elem_create(0, 'i', line, NULL, NULL, NULL);
else
elem = gophertoelem(dup, line);
list_append(&page, elem);