commit | 9afec5f8ec792e733e5b2217eb71e4f54955460c | [log] [tgz] |
---|---|---|
author | Alfred Klomp <git@alfredklomp.com> | Mon Jul 14 22:11:13 2014 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Thu Oct 23 15:36:17 2014 +0200 |
tree | 049c76afd4abbec27160a8218e94a2c2fba4dfde | |
parent | 185962114a210a92f48191ee52e1d8ba69a2928c [diff] |
ssl_mail_client.c: silence warning, check base64_encode() status Found with Clang's `scan-build` tool. ssl_mail_client.c does a dead store by assigning the return value of base64_encode() to `len` and not using the value. This causes scan-build to issue a warning. Instead of storing the return value into `len`, store it to `ret`, since base64_encode() returns a status code, not a length. Also check if the return value is nonzero and print an error; this silences scan-build.