Browse Source

fixed clang warning

dvh-chacham15-master
DINH Viet Hoa 10 years ago
parent
commit
527aa19a45
2 changed files with 4 additions and 1 deletions
  1. +3
    -1
      src/data-types/base64.c
  2. +1
    -0
      src/low-level/imf/mailimf.c

+ 3
- 1
src/data-types/base64.c View File

@ -116,8 +116,10 @@ char * decode_base64(const char * in, int len)
c4 = in[3];
if (CHAR64(c1) == -1 || CHAR64(c2) == -1 ||
(c3 != '=' && CHAR64(c3) == -1) ||
(c4 != '=' && CHAR64(c4) == -1))
(c4 != '=' && CHAR64(c4) == -1)) {
free(out);
return NULL;
}
in += 4;
*output++ = (CHAR64(c1) << 2) | (CHAR64(c2) >> 4);


+ 1
- 0
src/low-level/imf/mailimf.c View File

@ -5456,6 +5456,7 @@ int mailimf_msg_id_parse(const char * message, size_t length,
// ok
}
else {
free(msg_id);
res = r;
goto err;
}


Loading…
Cancel
Save