remove useless c->next = NULL

This commit is contained in:
David Demelier 2020-01-17 14:06:13 +01:00 committed by Hiltjo Posthuma
parent a192aa3113
commit 49e239fbb1

2
ii.c
View File

@ -234,7 +234,7 @@ channel_new(const char *name)
fprintf(stderr, "%s: calloc: %s\n", argv0, strerror(errno)); fprintf(stderr, "%s: calloc: %s\n", argv0, strerror(errno));
exit(1); exit(1);
} }
c->next = NULL;
strlcpy(c->name, name, sizeof(c->name)); strlcpy(c->name, name, sizeof(c->name));
channel_normalize_name(c->name); channel_normalize_name(c->name);