aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;