Text   |  XML   |  ReML   |   Visible Warnings:

Useless Assignment  at quota-storage.c:182

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

quota_copy

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/quota/quota-storage.c)expand/collapse
Show more  
 173  quota_copy(struct mail_save_context *ctx, struct mail *mail)
 174  {
 175          struct mailbox_transaction_context *t = ctx->transaction;
 176          struct quota_transaction_context *qt = QUOTA_CONTEXT(t);
 177          struct quota_mailbox *qbox = QUOTA_CONTEXT(t->box);
 178   
 179          if (ctx->dest_mail == NULL) {
 180                  /* we always want to know the mail size */
 181                  if (qt->tmp_mail == NULL) {
 182                          qt->tmp_mail = mail_alloc(t, MAIL_FETCH_PHYSICAL_SIZE,
 183                                                    NULL);
 184                  }
 185                  ctx->dest_mail = qt->tmp_mail;
 186          }
 187   
 188          qbox->save_hack = FALSE;
 189          if (qbox->module_ctx.super.copy(ctx, mail) < 0)
 190                  return -1;
 191   
 192          /* if copying used saving internally, we already checked the quota 
 193             and set qbox->save_hack = TRUE. */
 194          return qbox->save_hack ? 0 : quota_check(t, ctx->dest_mail);
 195  }
Show more  




Change Warning 8128.24936 : Useless Assignment

Priority:
State:
Finding:
Owner:
Note: