]> granicus.if.org Git - php/commitdiff
- Possible fix for bug #55022 (memory_limit exhausted when set charset in sybase_connect)
authorFelipe Pena <felipe@php.net>
Sat, 11 Jun 2011 01:15:14 +0000 (01:15 +0000)
committerFelipe Pena <felipe@php.net>
Sat, 11 Jun 2011 01:15:14 +0000 (01:15 +0000)
ext/sybase_ct/php_sybase_ct.c

index 0e8dc46a432aefa4ac69a5ddfd8c44bfee7d66a6..2d324065887387d13e4bc4c0b60c81280fd8696c 100644 (file)
@@ -728,7 +728,7 @@ static int php_sybase_do_connect_internal(sybase_link *sybase, char *host, char
 
 static void php_sybase_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
 {
-       char *user, *passwd, *host, *charset, *appname;
+       char *user = NULL, *passwd = NULL, *host = NULL, *charset = NULL, *appname = NULL;
        char *hashed_details;
        int hashed_details_length, len;
        zend_bool new = 0;