mirror of
https://github.com/lxsang/antd-cgi-plugin
synced 2024-12-26 01:58:22 +01:00
fix list
This commit is contained in:
parent
04ea239200
commit
6ed698d1f8
5
cgi.c
5
cgi.c
@ -49,8 +49,7 @@ static void add_vars(list_t *l, char *k, char *v)
|
||||
if (!v || !l || !k)
|
||||
return;
|
||||
char *data = __s("%s=%s", k, v);
|
||||
list_put_s(l, data);
|
||||
free(data);
|
||||
list_put_ptr(l, data);
|
||||
}
|
||||
|
||||
static void write_request_body(antd_request_t *rq, int fd)
|
||||
@ -208,7 +207,7 @@ void *handle(void *data)
|
||||
int i = 0;
|
||||
while (np)
|
||||
{
|
||||
envs[i] = np->value.s;
|
||||
envs[i] = (char*)np->value.ptr;
|
||||
np = np->next;
|
||||
i++;
|
||||
}
|
||||
|
BIN
dist/cgi-1.0.0b.tar.gz
vendored
BIN
dist/cgi-1.0.0b.tar.gz
vendored
Binary file not shown.
Loading…
Reference in New Issue
Block a user