diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-18 09:52:35 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-18 09:52:35 -0800 |
| commit | 7f0c3804dce7591332bbf6bd0922597ea675df44 (patch) | |
| tree | f165413a246604b61ba6567e626ed54a1d470b04 /match.c | |
| parent | 2622d44dc4247766089c2e455d798070b3800b39 (diff) | |
Checking more return values (per static analyzer)
Diffstat (limited to 'match.c')
| -rw-r--r-- | match.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
