bugfix: ptr must be preserved until psock has finished

This commit is contained in:
Fredrik Osterlind 2012-05-29 17:40:33 +02:00
parent c2b7e26e33
commit a95c2cf6c1
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ PT_THREAD(send_string(struct httpd_state *s, const char *str))
static
PT_THREAD(send_headers(struct httpd_state *s, const char *statushdr))
{
const char *ptr;
static const char *ptr;
PSOCK_BEGIN(&s->sout);

View File

@ -106,7 +106,7 @@ PT_THREAD(send_string(struct httpd_state *s, const char *str))
static
PT_THREAD(send_headers(struct httpd_state *s, const char *statushdr))
{
const char *ptr;
static const char *ptr;
PSOCK_BEGIN(&s->sout);