From 89e81059e832ff77c2f0ac8b9db12f80eafa03fc Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 24 Jan 2007 19:54:07 +0000 Subject: Each file in this commit has an instance where a pointer is checked at one point in the code and then not checked in another point in the code. If it needed to be checked once, it needs to be checked the other time. If not the application could segfault. --- (limited to 'noncore/todayplugins') diff --git a/noncore/todayplugins/stockticker/libstocks/http.c b/noncore/todayplugins/stockticker/libstocks/http.c index 2f38f8a..cc78ab7 100644 --- a/noncore/todayplugins/stockticker/libstocks/http.c +++ b/noncore/todayplugins/stockticker/libstocks/http.c @@ -210,7 +210,7 @@ libstocks_return_code http_get(char *http_file, char *http_server, char **pdata) header_founded = 0; while( !header_founded ) { - if (*temp==0) return ERRRHEA; + if (!temp || *temp==0) return ERRRHEA; if( *temp==0x0A ) { -- cgit v0.9.0.2