summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorChristopher Jones <sixd@php.net>2013-08-14 20:36:50 -0700
committerChristopher Jones <sixd@php.net>2013-08-14 20:36:50 -0700
commit9ad97cd48903ea5454853960f2c14de326e0f624 (patch)
tree9607bef3020deb8da37bacdb1c14624f4b5d1d2f /main
parent9d62807190ebda858acbb09ad832c96570a97c40 (diff)
downloadphp-git-9ad97cd48903ea5454853960f2c14de326e0f624.tar.gz
Reduce (some) compile noise of 'unused variable' and 'may be used uninitialized' warnings.
Diffstat (limited to 'main')
-rw-r--r--main/php_variables.c2
-rw-r--r--main/rfc1867.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/main/php_variables.c b/main/php_variables.c
index cf2b623d61..4c614692bb 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -56,7 +56,7 @@ PHPAPI void php_register_variable_safe(char *var, char *strval, int str_len, zva
PHPAPI void php_register_variable_ex(char *var_name, zval *val, zval *track_vars_array TSRMLS_DC)
{
char *p = NULL;
- char *ip; /* index pointer */
+ char *ip = NULL; /* index pointer */
char *index;
char *var, *var_orig;
int var_len, index_len;
diff --git a/main/rfc1867.c b/main/rfc1867.c
index b9007f2cb8..8e4820988d 100644
--- a/main/rfc1867.c
+++ b/main/rfc1867.c
@@ -398,7 +398,7 @@ static int find_boundary(multipart_buffer *self, char *boundary TSRMLS_DC)
static int multipart_buffer_headers(multipart_buffer *self, zend_llist *header TSRMLS_DC)
{
char *line;
- mime_header_entry prev_entry, entry;
+ mime_header_entry prev_entry = {0}, entry;
int prev_len, cur_len;
/* didn't find boundary, abort */