diff options
author | 2022-01-11 16:03:55 -0500 | |
---|---|---|
committer | 2022-01-11 16:03:55 -0500 | |
commit | 290ed40edffc08911a1e43005995666f89a4807f (patch) | |
tree | a3690ae6d0fbe07c1000e12d228b57e104e009d8 /src | |
parent | fix scan-build/cppcheck warnings (diff) | |
download | firejail-290ed40edffc08911a1e43005995666f89a4807f.tar.gz firejail-290ed40edffc08911a1e43005995666f89a4807f.tar.zst firejail-290ed40edffc08911a1e43005995666f89a4807f.zip |
fix scan-build
Diffstat (limited to 'src')
-rw-r--r-- | src/fnettrace/radix.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/fnettrace/radix.c b/src/fnettrace/radix.c index d68aaf85c..96d6bcf41 100644 --- a/src/fnettrace/radix.c +++ b/src/fnettrace/radix.c | |||
@@ -73,11 +73,6 @@ static inline RNode *addZero(RNode *ptr, uint32_t ip, uint32_t mask, char *name) | |||
73 | // add to radix tree | 73 | // add to radix tree |
74 | void radix_add(uint32_t ip, uint32_t mask, char *name) { | 74 | void radix_add(uint32_t ip, uint32_t mask, char *name) { |
75 | assert(name); | 75 | assert(name); |
76 | char *tmp = strdup(name); | ||
77 | if (!tmp) | ||
78 | errExit("strdup"); | ||
79 | name = tmp; | ||
80 | |||
81 | uint32_t m = 0x80000000; | 76 | uint32_t m = 0x80000000; |
82 | uint32_t lastm = 0; | 77 | uint32_t lastm = 0; |
83 | if (head == 0) { | 78 | if (head == 0) { |