summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-08-24 02:42:12 +0300
committerawy <awy@awy.one>2025-08-24 02:42:12 +0300
commitd660f875554a25bad0f107ee8ca694a8ad9472ef (patch)
treeb113871ed015ddf9355f6e5e95d04363a2f0351b /src
parent09a26825adf370314219424b4bff2c3f9a931ebb (diff)
stmail fix
Diffstat (limited to 'src')
-rw-r--r--src/stmail.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stmail.c b/src/stmail.c
index d4c23eb..4c66bc9 100644
--- a/src/stmail.c
+++ b/src/stmail.c
@@ -75,6 +75,8 @@ main(void)
}
}
+ closedir(dir);
+
if (access("/tmp/mailupdate", F_OK) != -1) {
printf("");
if (count != 0) { printf(" "); }
@@ -83,6 +85,5 @@ main(void)
if (count == 0) { return 0; }
printf(" %d", count);
- closedir(dir);
return 0;
}