mirror of
https://github.com/lxsang/antd-cgi-plugin
synced 2024-12-27 10:28: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)
|
if (!v || !l || !k)
|
||||||
return;
|
return;
|
||||||
char *data = __s("%s=%s", k, v);
|
char *data = __s("%s=%s", k, v);
|
||||||
list_put_s(l, data);
|
list_put_ptr(l, data);
|
||||||
free(data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void write_request_body(antd_request_t *rq, int fd)
|
static void write_request_body(antd_request_t *rq, int fd)
|
||||||
@ -208,7 +207,7 @@ void *handle(void *data)
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
while (np)
|
while (np)
|
||||||
{
|
{
|
||||||
envs[i] = np->value.s;
|
envs[i] = (char*)np->value.ptr;
|
||||||
np = np->next;
|
np = np->next;
|
||||||
i++;
|
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