Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Call  at index-mailbox-list.c:518

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

index_mailbox_list_created

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/list/index-mailbox-list.c)expand/collapse
Show more  
 503  static void index_mailbox_list_created(struct mailbox_list *list)
 504  {
 505          struct index_mailbox_list *ilist = NULL;
 506          const char *dir;
 507   
 508          /* FIXME: always disabled for now */
 509          dir = mailbox_list_get_path(list, NULL, MAILBOX_LIST_PATH_TYPE_INDEX);
 510          if (*dir == '\0' || getenv("MAILBOX_LIST_INDEX_DISABLE") != NULL ||
 511              strcmp(list->name, "maildir++") != 0 || 1) {
 512                  /* reserve the module context anyway, so syncing code knows
 513                     that the index is disabled */
 514                  MODULE_CONTEXT_SET(list, index_mailbox_list_module, ilist);
 515                  return;
 516          }
 517   
 518          ilist = p_new(list->pool, struct index_mailbox_list, 1);
 519          ilist->module_ctx.super = list->v;
 520   
 521          list->v.deinit = index_mailbox_list_deinit;
 522          list->v.iter_init = index_mailbox_list_iter_init;
 523          list->v.iter_deinit = index_mailbox_list_iter_deinit;
 524          list->v.iter_next = index_mailbox_list_iter_next;
 525          MODULE_CONTEXT_SET(list, index_mailbox_list_module, ilist);
 526   
 527          ilist->mail_index = mail_index_alloc(dir, MAIL_INDEX_PREFIX);
 528   
 529          /* sync_init allocates the extensions. do it here before opening the
 530             index files, so that our initial memory pool size guesses are a
 531             bit more optimal */
 532          index_mailbox_list_sync_init_list(list);
 533   
 534          if (index_mailbox_list_open_indexes(list, dir) < 0) {
 535                  list->v = ilist->module_ctx.super;
 536                  mail_index_free(&ilist->mail_index);
 537                  MODULE_CONTEXT_UNSET(list, index_mailbox_list_module);
 538          }
 539  }
Show more  




Change Warning 7276.25866 : Unreachable Call

Priority:
State:
Finding:
Owner:
Note: