summaryrefslogtreecommitdiff
path: root/lib/libalpm/handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/handle.c')
-rw-r--r--lib/libalpm/handle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c
index 899ac88c..e9df0aa7 100644
--- a/lib/libalpm/handle.c
+++ b/lib/libalpm/handle.c
@@ -426,6 +426,7 @@ int SYMEXPORT alpm_option_set_logfile(const char *logfile)
}
if(handle->logstream) {
fclose(handle->logstream);
+ handle->logstream = NULL;
}
_alpm_log(PM_LOG_DEBUG, "option 'logfile' = %s\n", handle->logfile);
return(0);