mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
fixes, coddling, and suppressions for clang-tidy complaints:
examples/pem/pem.c: fix stdio stream leaks. src/ssl.c and src/ssl_load.c: suppress concurrency-mt-unsafe around getenv(). getenv() is threadsafe as long as no threads putenv() or setenv(). wolfssl/openssl/asn1.h: add parentheses to fix bugprone-macro-parentheses in ASN1_EX_TEMPLATE_TYPE(), and suppress misfiring bugprone-macro-parentheses around IMPLEMENT_ASN1_FUNCTIONS().
This commit is contained in:
@@ -1024,6 +1024,13 @@ int main(int argc, char* argv[])
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "%s\n", wc_GetErrorString(ret));
|
||||
}
|
||||
|
||||
if (in_file != stdin)
|
||||
(void)fclose(in_file);
|
||||
|
||||
if (out_file != stdout)
|
||||
(void)fclose(out_file);
|
||||
|
||||
return (ret == 0) ? 0 : 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user