]> granicus.if.org Git - php/commitdiff
Add missing initialization.
authorIlia Alshanetsky <iliaa@php.net>
Fri, 9 May 2003 01:10:18 +0000 (01:10 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 9 May 2003 01:10:18 +0000 (01:10 +0000)
ext/curl/interface.c

index 5e368408586451a51adaa9fee8e26a6672d1b8ef..8c6e7d297c9d9c8808b34e11bb006c949c5994fa 100644 (file)
@@ -674,6 +674,8 @@ PHP_FUNCTION(curl_init)
        ch->handlers->read->method  = PHP_CURL_DIRECT;
        ch->handlers->write_header->method = PHP_CURL_IGNORE;
 
+       ch->uses = 0;
+
        curl_easy_setopt(ch->cp, CURLOPT_NOPROGRESS,        1);
        curl_easy_setopt(ch->cp, CURLOPT_VERBOSE,           0);
        curl_easy_setopt(ch->cp, CURLOPT_ERRORBUFFER,       ch->err.str);