Fix compiler warnings

This commit is contained in:
dak664 2010-12-14 22:45:22 +00:00
parent d8fe44645c
commit a026c94467
3 changed files with 12 additions and 10 deletions

View file

@ -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);