Skip to content

Commit

Permalink
Fix [-Wunused-variable] [-Wparentheses]
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Jan 8, 2014
1 parent 4b59480 commit 23257fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/yaf_route_static.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 23257fd

Please sign in to comment.