Browse Source

Fixed warnings reported by PVS-Studio

merge-experiment
Hoa V. DINH 8 years ago
parent
commit
b2fbdaf28e
4 changed files with 4 additions and 7 deletions
  1. +0
    -1
      src/low-level/imap/condstore.c
  2. +2
    -4
      src/low-level/imap/mailimap_sort.c
  3. +0
    -1
      src/low-level/imap/mailimap_types.c
  4. +2
    -1
      src/low-level/imap/mailimap_types_helper.c

+ 0
- 1
src/low-level/imap/condstore.c View File

@ -695,7 +695,6 @@ static int resp_text_code_parse(mailstream * fd,
"NOMODSEQ" /
"MODIFIED" SP set
*/
cur_token = * indx;
r = mailimap_token_case_insensitive_parse(fd, buffer, &cur_token, "HIGHESTMODSEQ");
if (r == MAILIMAP_NO_ERROR) {


+ 2
- 4
src/low-level/imap/mailimap_sort.c View File

@ -403,8 +403,7 @@ mailimap_sort_extension_parse(int calling_parser, mailstream * fd,
int r;
clist * number_list = NULL;
struct mailimap_extension_data * ext_data;
void * data;
int type;
void * data = NULL;
size_t cur_token;
cur_token = * indx;
@ -416,7 +415,6 @@ mailimap_sort_extension_parse(int calling_parser, mailstream * fd,
r = mailimap_number_list_data_sort_parse(fd, buffer, &cur_token,
&number_list, progr_rate, progr_fun);
if (r == MAILIMAP_NO_ERROR) {
type = MAILIMAP_SORT_TYPE_SORT;
data = number_list;
}
@ -425,7 +423,7 @@ mailimap_sort_extension_parse(int calling_parser, mailstream * fd,
}
ext_data = mailimap_extension_data_new(&mailimap_extension_sort,
type, data);
MAILIMAP_SORT_TYPE_SORT, data);
if (ext_data == NULL) {
if (number_list != NULL)
mailimap_mailbox_data_search_free(number_list);


+ 0
- 1
src/low-level/imap/mailimap_types.c View File

@ -1642,7 +1642,6 @@ mailimap_message_data_new(uint32_t mdt_number, int mdt_type,
msg_data = malloc(sizeof(* msg_data));
if (msg_data == NULL) {
free(msg_data);
return NULL;
}


+ 2
- 1
src/low-level/imap/mailimap_types_helper.c View File

@ -1274,7 +1274,8 @@ static int recursive_build_path(struct mailimap_body * root_part,
r = try_build_part(current_part, part, count, &imap_id_list);
if (r == MAILIMAP_ERROR_INVAL) {
continue;
} if (r != MAILIMAP_NO_ERROR) {
}
else if (r != MAILIMAP_NO_ERROR) {
return r;
}
else {


Loading…
Cancel
Save