From 8cea2bdb710f40d7ed22acc14af5ead9179912aa Mon Sep 17 00:00:00 2001 From: Arnaud Cornet Date: Sun, 7 Jun 2009 13:22:20 +0200 Subject: [PATCH] Don't fail if ressetting non existing store. --- src/log.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/log.c b/src/log.c index b21f294..e02ab76 100644 --- a/src/log.c +++ b/src/log.c @@ -706,10 +706,11 @@ void log_reset_store(log_t *log, const char *storename) logstore_t *store; store = hash_get(&log->logfgs, storename); - if (store) + if (store) { log_reset(store); - if (!ischannel(*storename)) - log_drop(log, storename); + if (!ischannel(*storename)) + log_drop(log, storename); + } } void log_client_none_connected(log_t *logdata)