aboutsummaryrefslogtreecommitdiff
path: root/match.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-18 09:52:35 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-18 09:52:35 -0800
commit7f0c3804dce7591332bbf6bd0922597ea675df44 (patch)
treef165413a246604b61ba6567e626ed54a1d470b04 /match.c
parent2622d44dc4247766089c2e455d798070b3800b39 (diff)
Checking more return values (per static analyzer)
Diffstat (limited to 'match.c')
-rw-r--r--match.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/match.c b/match.c
index 63f44c6..e771cce 100644
--- a/match.c
+++ b/match.c
@@ -595,7 +595,7 @@ static match_t *new_match(void)
if (unused_matches) {
m = unused_matches;
unused_matches = unused_matches->next;
- memset(m, 0, sizeof(match_t));
+ (void)memset(m, 0, sizeof(match_t));
} else {
m = new(match_t);
}
@@ -622,10 +622,10 @@ void recycle_if_unused(match_t **at_m)
#ifdef DEBUG_HEAP
DLL_REMOVE(m); // Remove from in_use_matches
- memset(m, 0, sizeof(match_t));
+ (void)memset(m, 0, sizeof(match_t));
DLL_PREPEND(unused_matches, m);
#else
- memset(m, 0, sizeof(match_t));
+ (void)memset(m, 0, sizeof(match_t));
m->next = unused_matches;
unused_matches = m;
#endif