From e16d51458e682145ccedd3ece509d848b031e82d Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Sun, 14 Jan 2018 19:57:16 +0200 Subject: [PATCH] trash: Ensure quser is not NULL Satisfies static analyzers --- src/plugins/trash/trash-plugin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/trash/trash-plugin.c b/src/plugins/trash/trash-plugin.c index d5e4dcb6c5..170924b8d9 100644 --- a/src/plugins/trash/trash-plugin.c +++ b/src/plugins/trash/trash-plugin.c @@ -367,6 +367,7 @@ trash_mail_namespaces_created(struct mail_namespace *namespaces) struct quota_user *quser = QUOTA_USER_CONTEXT(user); if (tuser != NULL && read_configuration(user, tuser->config_file) == 0) { + i_assert(quser != NULL); trash_next_quota_test_alloc = quser->quota->set->test_alloc; quser->quota->set->test_alloc = trash_quota_test_alloc;