Skip to content

Commit

Permalink
fix scan-build
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Jan 11, 2022
1 parent 782b7ce commit 290ed40
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/fnettrace/radix.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ static inline RNode *addZero(RNode *ptr, uint32_t ip, uint32_t mask, char *name)
// add to radix tree
void radix_add(uint32_t ip, uint32_t mask, char *name) {
assert(name);
char *tmp = strdup(name);
if (!tmp)
errExit("strdup");
name = tmp;

uint32_t m = 0x80000000;
uint32_t lastm = 0;
if (head == 0) {
Expand Down

0 comments on commit 290ed40

Please sign in to comment.