diff --git a/routes/yaf_route_static.c b/routes/yaf_route_static.c index 6fb09b97..5bd7d3f5 100644 --- a/routes/yaf_route_static.c +++ b/routes/yaf_route_static.c @@ -212,7 +212,7 @@ zval * yaf_route_static_assemble(yaf_route_t *this_ptr, zval *mvc, zval *query T smart_str_appendl(&tvalue, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); if (IS_ARRAY == Z_TYPE_P(query)) { - uint key_type, key_len; + uint key_len; char *key; ulong key_idx; int start = 0, end = 0; @@ -281,7 +281,7 @@ PHP_METHOD(yaf_route_static, assemble) { if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|a", &mvc, &query) == FAILURE) { return; } else { - if (return_uri = yaf_route_static_assemble(getThis(), mvc, query TSRMLS_CC)) { + if ((return_uri = yaf_route_static_assemble(getThis(), mvc, query TSRMLS_CC))) { RETURN_ZVAL(return_uri, 0, 1); } }