X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/10c50704c1efb095f3b35de3a535f4ea311cb3e5..4a5ee04fd186cb7d86a4f70821dacc55f8cce98d:/src/src/spool_mbox.c?ds=sidebyside diff --git a/src/src/spool_mbox.c b/src/src/spool_mbox.c index 89691652e..b1de39e7d 100644 --- a/src/src/spool_mbox.c +++ b/src/src/spool_mbox.c @@ -196,7 +196,6 @@ if (spool_mbox_ok && !no_mbox_unspool) { uschar *mbox_path; uschar *file_path; - int n; struct dirent *entry; DIR *tempdir; @@ -214,11 +213,12 @@ if (spool_mbox_ok && !no_mbox_unspool) while((entry = readdir(tempdir)) != NULL) { uschar *name = US entry->d_name; + int dummy; if (Ustrcmp(name, US".") == 0 || Ustrcmp(name, US"..") == 0) continue; file_path = string_sprintf("%s/%s", mbox_path, name); debug_printf("unspool_mbox(): unlinking '%s'\n", file_path); - n = unlink(CS file_path); + dummy = unlink(CS file_path); } closedir(tempdir);