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 23257fd commit 75cb392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/yaf_route_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ zval * yaf_route_simple_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;

Expand Down Expand Up @@ -212,7 +212,7 @@ PHP_METHOD(yaf_route_simple, assemble) {
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|a", &mvc, &query) == FAILURE) {
return;
} else {
if (return_uri = yaf_route_simple_assemble(getThis(), mvc, query TSRMLS_CC)) {
if ((return_uri = yaf_route_simple_assemble(getThis(), mvc, query TSRMLS_CC))) {
RETURN_ZVAL(return_uri, 0, 1);
}
}
Expand Down

0 comments on commit 75cb392

Please sign in to comment.