commit 3ec1103d92087bff8230cc724da980277f0c9b4a parent 8d91edeec256c0b4c224efb408472f4b079ed5e8 Author: hhvn <dev@hhvn.uk> Date: Tue, 7 Dec 2021 21:04:25 +0000 main.c: allow empty params Diffstat:
M | main.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.c b/main.c @@ -98,7 +98,7 @@ param_create(char *msg) { params[i] = cur; ret = emalloc(sizeof(params)); - for (rp=ret, i=0; params[i] && *params[i]; i++, rp++) + for (rp=ret, i=0; params[i]; i++, rp++) *rp = estrdup(params[i]); *rp = NULL;