Text   |  XML   |  ReML   |   Visible Warnings:

Ignored Return Value  at listescape-plugin.c:105

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

listescape_mailbox_list_iter_init

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/listescape/listescape-plugin.c)expand/collapse
Show more  
 95  static struct mailbox_list_iterate_context *
 96  listescape_mailbox_list_iter_init(struct mailbox_list *list,
 97                                    const char *const *patterns,
 98                                    enum mailbox_list_iter_flags flags)
 99  {
 100          struct listescape_mailbox_list *mlist = LIST_ESCAPE_LIST_CONTEXT(list);
 101          struct mailbox_list_iterate_context *ctx;
 102          const char **escaped_patterns;
 103          unsigned int i;
 104   
 105          t_push();
 106          if ((flags & MAILBOX_LIST_ITER_VIRTUAL_NAMES) != 0) {
 107                  escaped_patterns = t_new(const char *,
 108                                           str_array_length(patterns) + 1);
 109                  for (i = 0; patterns[i] != NULL; i++) {
 110                          escaped_patterns[i] =
 111                                  list_escape(list->ns, patterns[i], FALSE);
 112                  }
 113                  patterns = escaped_patterns;
 114          }
 115   
 116          /* Listing breaks if ns->real_sep isn't correct, but with everything 
 117             else we need real_sep == virtual_sep. maybe some day lib-storage
 118             API gets changed so that it sees only virtual mailbox names and 
 119             convers them internally and we don't have this problem. */
 120          list->ns->real_sep = list->hierarchy_sep;
 121          ctx = mlist->module_ctx.super.iter_init(list, patterns, flags);
 122          list->ns->real_sep = list->ns->sep;
 123          t_pop();
 124          return ctx;
 125  }
Show more  




Change Warning 8173.26080 : Ignored Return Value

Priority:
State:
Finding:
Owner:
Note: