summaryrefslogtreecommitdiff
path: root/main/rfc1867.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-05-15 22:45:35 +0200
committerBob Weinand <bobwei9@hotmail.com>2015-05-15 22:45:35 +0200
commit34e6fbbfed6bd63e7f71ca61ff73ca67d0c12b7b (patch)
treef9c20aa7c8a55c9670ee4d456e895679c80fb45e /main/rfc1867.c
parent6868b56e25e6ce80418219bd876ee2de7646cf63 (diff)
parent230b435ed40fe40931ae3f32f319cfff328ac2fe (diff)
downloadphp-git-34e6fbbfed6bd63e7f71ca61ff73ca67d0c12b7b.tar.gz
Merge branch 'master' of https://github.com/php/php-src
Diffstat (limited to 'main/rfc1867.c')
-rw-r--r--main/rfc1867.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c
index 3c1bfa6b4f..30457f3bca 100644
--- a/main/rfc1867.c
+++ b/main/rfc1867.c
@@ -420,8 +420,7 @@ static int multipart_buffer_headers(multipart_buffer *self, zend_llist *header)
/* get lines of text, or CRLF_CRLF */
- while( (line = get_line(self)) && line[0] != '\0' )
- {
+ while ((line = get_line(self)) && line[0] != '\0') {
/* add header to table */
char *value = NULL;
@@ -435,7 +434,7 @@ static int multipart_buffer_headers(multipart_buffer *self, zend_llist *header)
}
if (value) {
- if(buf_value.c && key) {
+ if (buf_value.c && key) {
/* new entry, add the old one to the list */
smart_string_0(&buf_value);
entry.key = key;
@@ -446,7 +445,7 @@ static int multipart_buffer_headers(multipart_buffer *self, zend_llist *header)
}
*value = '\0';
- do { value++; } while(isspace(*value));
+ do { value++; } while (isspace(*value));
key = estrdup(line);
smart_string_appends(&buf_value, value);
@@ -457,7 +456,7 @@ static int multipart_buffer_headers(multipart_buffer *self, zend_llist *header)
}
}
- if(buf_value.c && key) {
+ if (buf_value.c && key) {
/* add the last one to the list */
smart_string_0(&buf_value);
entry.key = key;