Fix compiler warnings
This commit is contained in:
parent
d8fe44645c
commit
a026c94467
3 changed files with 12 additions and 10 deletions
|
@ -30,7 +30,7 @@
|
|||
*
|
||||
* Author: Adam Dunkels <adam@sics.se>
|
||||
*
|
||||
* $Id: httpd.c,v 1.19 2010/10/19 18:29:03 adamdunkels Exp $
|
||||
* $Id: httpd.c,v 1.20 2010/12/14 22:45:22 dak664 Exp $
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -185,7 +185,7 @@ PT_THREAD(handle_script(struct httpd_state *s))
|
|||
static
|
||||
PT_THREAD(send_headers(struct httpd_state *s, const char *statushdr))
|
||||
{
|
||||
const char *ptr;
|
||||
const char *ptr = NULL; //gcc warning if not initialized
|
||||
|
||||
PSOCK_BEGIN(&s->sout);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue