summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/opiealarm/opiealarm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/opiealarm/opiealarm.c b/core/opiealarm/opiealarm.c
index 072dca7..465e633 100644
--- a/core/opiealarm/opiealarm.c
+++ b/core/opiealarm/opiealarm.c
@@ -260,2 +260,3 @@ int suspend ( int fix_rtc )
fclose ( fp );
+ fp = 0;
@@ -288,2 +289,3 @@ int suspend ( int fix_rtc )
close ( fd );
+ fd = -1;