summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFacialTurd <simon@hardwired.org.uk>2011-02-06 12:41:48 (GMT)
committer FacialTurd <simon@hardwired.org.uk>2011-02-06 12:41:48 (GMT)
commit3a4b7f698323ca440258f973282a3511c9a611f2 (patch)
treedf69e2825956c89f5c92e34e6f1c4d6a7d9a2566 /src
parentbb3964138cb664b0c9ced741441863bb0c03c556 (diff)
downloadpowder-3a4b7f698323ca440258f973282a3511c9a611f2.zip
powder-3a4b7f698323ca440258f973282a3511c9a611f2.tar.gz
Uninitialised pointer segfault if not previously logged in - jacksonmj
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 69aa5a8..03bffa9 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;