Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed invalid use after scope

  • Loading branch information...
commit 263cf19a405113900a17c20845421916c63f21f1 1 parent 535ca44
@pp3345 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 sys/modules/core/Pancake_HTTPRequest.c
View
4 sys/modules/core/Pancake_HTTPRequest.c
@@ -1007,7 +1007,8 @@ PHP_METHOD(HTTPRequest, init) {
}
PHP_METHOD(HTTPRequest, buildAnswerHeaders) {
- zval *vHost, *answerHeaderArray, *answerCodez, *answerBodyz, *protocolVersion, **contentLength, *requestHeaderArray, *connectionAnswer, **connection, *requestType;
+ zval *vHost, *answerHeaderArray, *answerCodez, *answerBodyz, *protocolVersion, **contentLength, *requestHeaderArray, *connectionAnswer, **connection, *requestType,
+ *contentLengthM;
long answerCode;
int answerBody_len;
@@ -1026,7 +1027,6 @@ PHP_METHOD(HTTPRequest, buildAnswerHeaders) {
Z_LVAL_PP(contentLength) = answerBody_len;
}
} else {
- zval *contentLengthM;
MAKE_STD_ZVAL(contentLengthM);
contentLength = &contentLengthM;
Please sign in to comment.
Something went wrong with that request. Please try again.