delete memset for performance optimization

This commit is contained in:
liuwentan
2023-04-18 16:32:44 +08:00
parent d59e101c9c
commit ff4666ca9d
9 changed files with 0 additions and 21 deletions

View File

@@ -548,8 +548,6 @@ int ip_plugin_runtime_get_ex_data(void *ip_plugin_runtime, const struct ip_addr
}
struct scan_result results[n_ex_data];
memset(results, 0, sizeof(results));
struct ip_data ip_data = *(const struct ip_data *)ip_addr;
if (ip_data.type == IPv4) {
ip_data.ipv4 = ntohl(ip_data.ipv4);