aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2019-12-06 16:46:19 +0300
committerAleksey Veresov <aleksey@veresov.pro>2019-12-06 16:46:19 +0300
commit26405332102756912ab2c175874555d6eb8c332f (patch)
tree1828f85a635793abba491ab1b25f30311ee9e44e /src
parentb9a0844fe25cf717cdd796018bea2ae6eff58896 (diff)
downloadmagi-26405332102756912ab2c175874555d6eb8c332f.tar
magi-26405332102756912ab2c175874555d6eb8c332f.tar.xz
magi-26405332102756912ab2c175874555d6eb8c332f.zip
[magi] fix tempfiles callback
Diffstat (limited to 'src')
-rw-r--r--src/request.c3
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;