Text   |  XML   |  ReML   |   Visible Warnings:

Redundant Condition  at mail-cache-sync-update.c:52

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

mail_cache_handler_lock

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-cache-sync-update.c)expand/collapse
Show more  
 42  static int mail_cache_handler_lock(struct mail_cache_sync_context *ctx,
 43                                     struct mail_cache *cache)
 44  {
 45          int ret;
 46   
 47          if (ctx->locked)
 48                  return MAIL_CACHE_IS_UNUSABLE(cache) ? 0 : 1;
 49          if (ctx->lock_failed)
 50                  return 0;
 51   
 52          if (!ctx->locked) {
 53                  if ((ret = mail_cache_lock(cache, TRUE)) <= 0) {
 54                          ctx->lock_failed = TRUE;
 55                          return ret;
 56                  }
 57                  ctx->locked = TRUE;
 58          }
 59          return 1;
 60  }
Show more  




Change Warning 7232.24400 : Redundant Condition

Priority:
State:
Finding:
Owner:
Note: