Uninitialised pointer segfault if not previously logged in

This commit is contained in:
jacksonmj 2011-02-04 20:53:15 +00:00
parent 2569d244d4
commit 196ccd1e36

View File

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