Cosmetics: moving declaration to the too of the block

This commit is contained in:
Felipe Zimmerle
2017-07-14 13:22:46 -03:00
parent 9f92321afb
commit 61bce8d9a9
2 changed files with 7 additions and 7 deletions

View File

@@ -1327,14 +1327,14 @@ apr_status_t multipart_cleanup(modsec_rec *msr) {
} else {
/* Move file to the upload dir. */
if (parts[i]->tmp_file_name != NULL) {
const char *new_filename = NULL;
const char *new_basename = NULL;
if (strcmp(msr->txcfg->upload_dir, msr->txcfg->tmp_dir) == 0) {
msr_log(msr, 4, "Not moving part to identical location");
continue;
}
const char *new_filename = NULL;
const char *new_basename = NULL;
/* make sure it is closed first */
if (parts[i]->tmp_file_fd > 0) {
close(parts[i]->tmp_file_fd);