diff --git a/apps/webserver-nano/httpd-cfs.c b/apps/webserver-nano/httpd-cfs.c index fb6fb56b3..64c164004 100644 --- a/apps/webserver-nano/httpd-cfs.c +++ b/apps/webserver-nano/httpd-cfs.c @@ -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); diff --git a/apps/webserver/httpd-cfs.c b/apps/webserver/httpd-cfs.c index fb6fb56b3..64c164004 100644 --- a/apps/webserver/httpd-cfs.c +++ b/apps/webserver/httpd-cfs.c @@ -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);