Fix compiler warning (assignment makes pointer from integer without a cast)

master
Vitaliy Filippov 2015-08-18 12:07:50 +03:00
parent eb55496781
commit 618d2bd4d4
1 changed files with 3 additions and 2 deletions

View File

@ -531,6 +531,7 @@ PHP_FUNCTION(stomp_connect)
if (stomp->status) {
stomp_frame_t *res;
int rres;
stomp_frame_t frame = {0};
INIT_FRAME(frame, "CONNECT");
@ -549,9 +550,9 @@ PHP_FUNCTION(stomp_connect)
FRAME_HEADER_FROM_HASHTABLE(frame.headers, Z_ARRVAL_P(headers));
}
res = stomp_send(stomp, &frame TSRMLS_CC);
rres = stomp_send(stomp, &frame TSRMLS_CC);
CLEAR_FRAME(frame);
if (0 == res) {
if (0 == rres) {
zval *excobj = zend_throw_exception_ex(stomp_ce_exception, stomp->errnum TSRMLS_CC, stomp->error);
if (stomp->error_details) {
zend_update_property_string(stomp_ce_exception, excobj, "details", sizeof("details")-1, stomp->error_details TSRMLS_CC);