From 3a4b7f698323ca440258f973282a3511c9a611f2 Mon Sep 17 00:00:00 2001 From: FacialTurd Date: Sun, 6 Feb 2011 04:41:48 -0800 Subject: [PATCH] Uninitialised pointer segfault if not previously logged in - jacksonmj --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 69aa5a8d6..03bffa96d 100644 --- a/src/main.c +++ b/src/main.c @@ -1181,7 +1181,7 @@ int main(int argc, char *argv[]) pixel *vid_buf=calloc((XRES+BARSIZE)*(YRES+MENUSIZE), PIXELSIZE); pixel *pers_bg=calloc((XRES+BARSIZE)*YRES, PIXELSIZE); void *http_ver_check; - void *http_session_check; + void *http_session_check = NULL; char *ver_data=NULL, *check_data=NULL, *tmp; char console_error[255] = ""; int i, j, bq, fire_fc=0, do_check=0, do_s_check=0, old_version=0, http_ret=0,http_s_ret=0, major, minor, old_ver_len;