diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2019-12-06 16:46:19 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2019-12-06 16:46:19 +0300 |
commit | 26405332102756912ab2c175874555d6eb8c332f (patch) | |
tree | 1828f85a635793abba491ab1b25f30311ee9e44e | |
parent | b9a0844fe25cf717cdd796018bea2ae6eff58896 (diff) | |
download | magi-26405332102756912ab2c175874555d6eb8c332f.tar magi-26405332102756912ab2c175874555d6eb8c332f.tar.xz magi-26405332102756912ab2c175874555d6eb8c332f.zip |
[magi] fix tempfiles callback
-rw-r--r-- | src/request.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/request.c b/src/request.c index d8e6d69..8c3a101 100644 --- a/src/request.c +++ b/src/request.c @@ -119,6 +119,9 @@ static void tempfiles(struct magi_file * file, { struct magi_tempfiles * table = userdata; int pos; + if (!file->file_name || !strcmp(file->file_name, "")) { + return; + } for (pos = 0; pos != table->count; ++pos) { if (!strcmp(table->tmps[pos].param_name, file->param_name)) { static FILE * f = 0; |