summaryrefslogtreecommitdiff
path: root/ext/standard/php_crypt_r.c
diff options
context:
space:
mode:
authorRijnard van Tonder <hi.teresy@gmail.com>2018-11-14 13:11:35 -0500
committerNikita Popov <nikita.ppv@gmail.com>2018-11-20 21:23:24 +0100
commit8881c3c82f75bd67578a774c40888b257a30a18f (patch)
tree8289de21a7a3b0c07d792a8042c599570e99f13c /ext/standard/php_crypt_r.c
parentef8fbd6fc952058b67bcd0fc0c9b5701407b8b36 (diff)
downloadphp-git-8881c3c82f75bd67578a774c40888b257a30a18f.tar.gz
Remove redundant continue in for loops
Diffstat (limited to 'ext/standard/php_crypt_r.c')
-rw-r--r--ext/standard/php_crypt_r.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/standard/php_crypt_r.c b/ext/standard/php_crypt_r.c
index 7af5636c08..921dffde52 100644
--- a/ext/standard/php_crypt_r.c
+++ b/ext/standard/php_crypt_r.c
@@ -154,9 +154,7 @@ char * php_md5_crypt_r(const char *pw, const char *salt, char *out) {
}
/* It stops at the first '$', max 8 chars */
- for (ep = sp; *ep != '\0' && *ep != '$' && ep < (sp + 8); ep++) {
- continue;
- }
+ for (ep = sp; *ep != '\0' && *ep != '$' && ep < (sp + 8); ep++);
/* get the length of the true salt */
sl = (DWORD)(ep - sp);
@@ -335,8 +333,7 @@ char * php_md5_crypt_r(const char *pw, const char *salt, char *out)
sp += MD5_MAGIC_LEN;
/* It stops at the first '$', max 8 chars */
- for (ep = sp; *ep != '\0' && *ep != '$' && ep < (sp + 8); ep++)
- continue;
+ for (ep = sp; *ep != '\0' && *ep != '$' && ep < (sp + 8); ep++);
/* get the length of the true salt */
sl = ep - sp;