Skip to content

Commit

Permalink
trash: Ensure quser is not NULL
Browse files Browse the repository at this point in the history
Satisfies static analyzers
  • Loading branch information
cmouse authored and mrannanj committed Feb 20, 2018
1 parent d5975da commit e16d514
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/trash/trash-plugin.c
Expand Up @@ -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;
Expand Down

0 comments on commit e16d514

Please sign in to comment.