Fix compiler warning (assignment makes pointer from integer without a cast)
parent
eb55496781
commit
618d2bd4d4
|
@ -531,6 +531,7 @@ PHP_FUNCTION(stomp_connect)
|
||||||
|
|
||||||
if (stomp->status) {
|
if (stomp->status) {
|
||||||
stomp_frame_t *res;
|
stomp_frame_t *res;
|
||||||
|
int rres;
|
||||||
stomp_frame_t frame = {0};
|
stomp_frame_t frame = {0};
|
||||||
|
|
||||||
INIT_FRAME(frame, "CONNECT");
|
INIT_FRAME(frame, "CONNECT");
|
||||||
|
@ -549,9 +550,9 @@ PHP_FUNCTION(stomp_connect)
|
||||||
FRAME_HEADER_FROM_HASHTABLE(frame.headers, Z_ARRVAL_P(headers));
|
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);
|
CLEAR_FRAME(frame);
|
||||||
if (0 == res) {
|
if (0 == rres) {
|
||||||
zval *excobj = zend_throw_exception_ex(stomp_ce_exception, stomp->errnum TSRMLS_CC, stomp->error);
|
zval *excobj = zend_throw_exception_ex(stomp_ce_exception, stomp->errnum TSRMLS_CC, stomp->error);
|
||||||
if (stomp->error_details) {
|
if (stomp->error_details) {
|
||||||
zend_update_property_string(stomp_ce_exception, excobj, "details", sizeof("details")-1, stomp->error_details TSRMLS_CC);
|
zend_update_property_string(stomp_ce_exception, excobj, "details", sizeof("details")-1, stomp->error_details TSRMLS_CC);
|
||||||
|
|
Loading…
Reference in New Issue