projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
d89a48d
)
fix use of uninitialised value
author
Michael Wallner
<mike@php.net>
Thu, 13 Dec 2012 15:44:39 +0000
(15:44 +0000)
committer
Michael Wallner
<mike@php.net>
Thu, 13 Dec 2012 15:44:39 +0000
(15:44 +0000)
php_http_misc.h
patch
|
blob
|
history
diff --git
a/php_http_misc.h
b/php_http_misc.h
index 67fc711e2c96113bf72ed87a9e03dc10f5e62c1c..d8fa0c990f2742077d0e548b7c113a76c36247b3 100644
(file)
--- a/
php_http_misc.h
+++ b/
php_http_misc.h
@@
-137,7
+137,7
@@
static inline const char *php_http_locate_bin_eol(const char *bin, size_t len, i
{
const char *eol;
- for (eol = bin; eol - bin <
=
len; ++eol) {
+ for (eol = bin; eol - bin < len; ++eol) {
if (*eol == '\r' || *eol == '\n') {
if (eol_len) {
*eol_len = ((eol[0] == '\r' && eol[1] == '\n') ? 2 : 1);