From: foobar Date: Fri, 16 Nov 2001 01:06:48 +0000 (+0000) Subject: No use of populating the hash if there is no file saved. X-Git-Tag: ChangeLog~307 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37dec69a7cdad954bec3cdce96e1258f58f090d9;p=php No use of populating the hash if there is no file saved. --- diff --git a/main/rfc1867.c b/main/rfc1867.c index c3cca37034..e3bfb5e47c 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -714,11 +714,10 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) } temp_filename=""; + } else { + zend_hash_add(SG(rfc1867_uploaded_files), temp_filename, strlen(temp_filename) + 1, &temp_filename, sizeof(char *), NULL); } - zend_hash_add(SG(rfc1867_uploaded_files), temp_filename, strlen(temp_filename) + 1, &temp_filename, sizeof(char *), NULL); - - /* Initialize variables */ add_protected_variable(param TSRMLS_CC);