summaryrefslogtreecommitdiff
path: root/core
Side-by-side diff
Diffstat (limited to 'core') (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
@@ -258,6 +258,7 @@ int suspend ( int fix_rtc )
break; // ( 1, TIMEFILE );
fclose ( fp );
+ fp = 0;
alrt = atoi ( buf ); // get the alarm time
@@ -286,6 +287,7 @@ int suspend ( int fix_rtc )
break; // ( 1, "ioctl RTC_AIE_OFF" );
close ( fd );
+ fd = -1;
remove_pidfile ( );