diff options
author | Stef Walter <stef@thewalter.net> | 2013-07-17 08:03:38 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-07-18 07:56:01 +0200 |
commit | eb8f5859b1349f8147ba47a1da8032df192f2370 (patch) | |
tree | a2fab941c7e96f641f99805ed701bded9366b9e2 /common | |
parent | ab1caffd9e09fd4d6ab92713de29436db0da6dea (diff) |
Fix various issues highlighted by coverity scanner
Among others fix possible usage of large stack allocation.
Diffstat (limited to 'common')
-rw-r--r-- | common/hash.c | 1 | ||||
-rw-r--r-- | common/lexer.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/common/hash.c b/common/hash.c index 68a6d40..5572085 100644 --- a/common/hash.c +++ b/common/hash.c @@ -143,6 +143,7 @@ p11_hash_murmur3 (void *hash, h1 = rotl (h1, 13); h1 = h1 * 5 + 0xe6546b64; } + va_end (va); /* tail */ diff --git a/common/lexer.c b/common/lexer.c index 329881f..6253492 100644 --- a/common/lexer.c +++ b/common/lexer.c @@ -102,7 +102,8 @@ p11_lexer_next (p11_lexer *lexer, return_val_if_fail (lexer != NULL, false); clear_state (lexer); - *failed = false; + if (failed) + *failed = false; /* Go through lines and process them */ while (lexer->remaining != 0) { |