From: Aki Tuomi Date: Sun, 14 Jan 2018 17:57:16 +0000 (+0200) Subject: trash: Ensure quser is not NULL X-Git-Tag: 2.3.1~267 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e16d51458e682145ccedd3ece509d848b031e82d;p=thirdparty%2Fdovecot%2Fcore.git trash: Ensure quser is not NULL Satisfies static analyzers --- 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;