mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-06 13:37:34 +08:00
Fixed indenting
This commit is contained in:
parent
16c463d2e9
commit
f2e19ca3ff
@ -4299,11 +4299,11 @@ int mg_upload(struct mg_connection *conn, const char *destination_dir) {
|
||||
// there is no other thread can save into the same file simultaneously.
|
||||
fp = NULL;
|
||||
// Construct destination file name. Do not allow paths to have slashes.
|
||||
if ((s = strrchr(fname, '/')) == NULL &&
|
||||
(s = strrchr(fname, '\\')) == NULL) {
|
||||
s = fname;
|
||||
if ((s = strrchr(fname, '/')) == NULL &&
|
||||
(s = strrchr(fname, '\\')) == NULL) {
|
||||
s = fname;
|
||||
}
|
||||
|
||||
|
||||
// Open file in binary mode. TODO: set an exclusive lock.
|
||||
snprintf(path, sizeof(path), "%s/%s", destination_dir, s);
|
||||
if ((fp = fopen(path, "wb")) == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user