summaryrefslogtreecommitdiff
path: root/src/lib/logs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/logs.c')
-rw-r--r--src/lib/logs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/logs.c b/src/lib/logs.c
index d86073e4..eed1ee10 100644
--- a/src/lib/logs.c
+++ b/src/lib/logs.c
@@ -34,3 +34,9 @@ int set_logfile(char * filename)
return 0;
}
+
+void close_logfile()
+{
+ if (logfile != NULL)
+ fclose(logfile);
+}