Skip to content

Commit

Permalink
parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Jan 21, 2013
1 parent 9b0a24e commit 78a3886
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions yaf_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ static void yaf_config_copy_persistent(HashTable *pdst, HashTable *src TSRMLS_DC
}

tmp = yaf_config_ini_zval_persistent(*ppzval TSRMLS_CC);
if (tmp)
zend_hash_index_update(pdst, idx, (void **)&tmp, sizeof(zval *), NULL);
if (tmp) {
zend_hash_index_update(pdst, idx, (void **)&tmp, sizeof(zval *), NULL);
}

} else {
zval *tmp;
Expand All @@ -118,8 +119,9 @@ static void yaf_config_copy_persistent(HashTable *pdst, HashTable *src TSRMLS_DC
}

tmp = yaf_config_ini_zval_persistent(*ppzval TSRMLS_CC);
if (tmp)
zend_hash_update(pdst, key, keylen, (void **)&tmp, sizeof(zval *), NULL);
if (tmp) {
zend_hash_update(pdst, key, keylen, (void **)&tmp, sizeof(zval *), NULL);
}
}
}
}
Expand Down Expand Up @@ -180,6 +182,7 @@ static zval * yaf_config_ini_zval_persistent(zval *zvalue TSRMLS_DC) {
case IS_ARRAY:
case IS_CONSTANT_ARRAY: {
HashTable *tmp_ht, *original_ht = zvalue->value.ht;

tmp_ht = (HashTable *)pemalloc(sizeof(HashTable), 1);
if (!tmp_ht) {
return NULL;
Expand Down

0 comments on commit 78a3886

Please sign in to comment.