mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
bugfix: ptr must be preserved until psock has finished
This commit is contained in:
parent
c2b7e26e33
commit
a95c2cf6c1
@ -106,7 +106,7 @@ PT_THREAD(send_string(struct httpd_state *s, const char *str))
|
|||||||
static
|
static
|
||||||
PT_THREAD(send_headers(struct httpd_state *s, const char *statushdr))
|
PT_THREAD(send_headers(struct httpd_state *s, const char *statushdr))
|
||||||
{
|
{
|
||||||
const char *ptr;
|
static const char *ptr;
|
||||||
|
|
||||||
PSOCK_BEGIN(&s->sout);
|
PSOCK_BEGIN(&s->sout);
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ PT_THREAD(send_string(struct httpd_state *s, const char *str))
|
|||||||
static
|
static
|
||||||
PT_THREAD(send_headers(struct httpd_state *s, const char *statushdr))
|
PT_THREAD(send_headers(struct httpd_state *s, const char *statushdr))
|
||||||
{
|
{
|
||||||
const char *ptr;
|
static const char *ptr;
|
||||||
|
|
||||||
PSOCK_BEGIN(&s->sout);
|
PSOCK_BEGIN(&s->sout);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user