Skip to content

Commit dd3a768

Browse files
author
Sterling Hughes
committed
fix.
1 parent 94e6db9 commit dd3a768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/curl/curl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ PHP_FUNCTION(curl_exec)
825825

826826
error = curl_easy_perform(ch->cp);
827827
if (error != CURLE_OK) {
828-
if (ch->handlers->write->buf)
828+
if (ch->handlers->write->buf.c)
829829
smart_str_free(&ch->handlers->write->buf);
830830
SAVE_CURL_ERROR(ch, error);
831831
RETURN_FALSE;

0 commit comments

Comments
 (0)