commit 49e239fbb19f1dc880f269a1adb0543dadc1f4e9
Author: David Demelier <[email protected]>
AuthorDate: Fri Jan 17 14:06:13 2020 +0100
Commit: Hiltjo Posthuma <[email protected]>
CommitDate: Fri Jan 17 14:55:06 2020 +0100
remove useless c->next = NULL
diff --git a/ii.c b/ii.c
index ef33ed5..7ca3ee8 100644
--- a/ii.c
+++ b/ii.c
@@ -234,7 +234,7 @@ channel_new(const char *name)
fprintf(stderr, "%s: calloc: %s\n", argv0, strerror(errno));
exit(1);
}
- c->next = NULL;
+
strlcpy(c->name, name, sizeof(c->name));
channel_normalize_name(c->name);