diff options
author | awy <awy@awy.one> | 2025-08-24 02:42:12 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2025-08-24 02:42:12 +0300 |
commit | d660f875554a25bad0f107ee8ca694a8ad9472ef (patch) | |
tree | b113871ed015ddf9355f6e5e95d04363a2f0351b | |
parent | 09a26825adf370314219424b4bff2c3f9a931ebb (diff) |
stmail fix
-rw-r--r-- | src/stmail.c | 3 |
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; } |