mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Cosmetics: moving declaration to the too of the block
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user