qb_log_file_open() left the target in an UNUSED state.
Signed-off-by: Angus Salkeld <asalkeld(a)redhat.com>
---
lib/log.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/log.c b/lib/log.c
index db2b595..6975dd6 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -562,6 +562,7 @@ struct qb_log_target *qb_log_target_alloc(void)
int32_t i;
for (i = 0; i < 32; i++) {
if (conf[i].state == QB_LOG_STATE_UNUSED) {
+ conf[i].state = QB_LOG_STATE_DISABLED;
return &conf[i];
}
}
--
1.7.4