From 7f0c3804dce7591332bbf6bd0922597ea675df44 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 18 Jan 2021 09:52:35 -0800 Subject: Checking more return values (per static analyzer) --- match.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'match.c') 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 -- cgit v1.2.3