hirc

IRC client
Log | Files | Refs

commit b92c3877eed12e45722d46f566f98e178ca95d10
parent 3ec1103d92087bff8230cc724da980277f0c9b4a
Author: hhvn <dev@hhvn.uk>
Date:   Tue,  7 Dec 2021 21:04:54 +0000

main.c: use memset instead of loop setting NULL

Diffstat:
Mmain.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/main.c b/main.c @@ -77,8 +77,7 @@ param_create(char *msg) { char *p, *cur; int final = 0, i; - for (i=0; i < PARAM_MAX; i++) - params[i] = NULL; + memset(params, 0, sizeof(params)); strlcpy(tmp, msg, sizeof(tmp)); for (p=cur=tmp, i=0; p && *p && i < PARAM_MAX; p++) {