summaryrefslogtreecommitdiff
path: root/pending_notifications.c
diff options
context:
space:
mode:
Diffstat (limited to 'pending_notifications.c')
-rw-r--r--pending_notifications.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pending_notifications.c b/pending_notifications.c
index bd96953..659b5a3 100644
--- a/pending_notifications.c
+++ b/pending_notifications.c
@@ -153,9 +153,10 @@ bool cPendingNotifications::Load(const char *FileName)
LogFile.iSysLog("loading %s", fileName);
FILE *f = fopen(fileName, "r");
bool result = false;
- if (f)
+ if (f) {
result = cPendingNotification::Read(f);
- fclose(f);
+ fclose(f);
+ }
if (result)
LogFile.Log(2,"loaded pending notifications from %s (count: %d)", fileName, Count());
else