com php-src: Adding Braces in json.c to conform with coding standards: ext/json/json.c
| From: | David Soria Parra | Date: | Mon, 19 Mar 2012 22:29:55 +0000 |
| Subject: | com php-src: Adding Braces in json.c to conform with coding standards: ext/json/json.c | ||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-68064@lists.php.net to get a copy of this message | ||
Commit: 76ef76d2f875ccc3c9529565bdb29451a9b087ef
Author: Matt Nowack <mdnowack@gmail.com> Mon, 19 Mar 2012 15:29:55 -0700
Committer: David Soria Parra <dsp@php.net> Tue, 20 Mar 2012 17:29:04 +0100
Parents: 7aa2b75db2efceff502c87c5bcb4db81accf4024
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=76ef76d2f875ccc3c9529565bdb29451a9b087ef
Log:
Adding Braces in json.c to conform with coding standards
Changed paths:
M ext/json/json.c
Diff:
76ef76d2f875ccc3c9529565bdb29451a9b087ef
diff --git a/ext/json/json.c b/ext/json/json.c
index f28f50b..5b62c2f 100644
--- a/ext/json/json.c
+++ b/ext/json/json.c
@@ -147,8 +147,9 @@ static int json_determine_array_type(zval **val TSRMLS_DC) /* {{{ */
idx = 0;
for (;; zend_hash_move_forward_ex(myht, &pos)) {
i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos);
- if (i == HASH_KEY_NON_EXISTANT)
+ if (i == HASH_KEY_NON_EXISTANT) {
break;
+ }
if (i == HASH_KEY_IS_STRING) {
return 1;