From 37dec69a7cdad954bec3cdce96e1258f58f090d9 Mon Sep 17 00:00:00 2001 From: foobar Date: Fri, 16 Nov 2001 01:06:48 +0000 Subject: [PATCH] No use of populating the hash if there is no file saved. --- main/rfc1867.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); -- 2.40.0