summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2021-10-27 20:13:14 +0300
committerluwenpeng <[email protected]>2021-10-27 20:13:14 +0300
commitef783a8b5fac0b14c5dc5a2225919ba59c8bbc33 (patch)
treeceb48010d1ff2923d54a7880291c52e9985ee204
parentf934023b40e08be1c1ae315c67438dc5625a8edb (diff)
修复编译警告v1.0.1-202110
-rw-r--r--platform/src/packet_adapter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/src/packet_adapter.c b/platform/src/packet_adapter.c
index 70eab10..b869d83 100644
--- a/platform/src/packet_adapter.c
+++ b/platform/src/packet_adapter.c
@@ -373,8 +373,8 @@ int main(int argc, char **argv)
int rv;
int opt;
uint16_t queue = 1;
- struct nfq_handle *handle;
- struct nfq_q_handle *q_handle;
+ struct nfq_handle *handle = NULL;
+ struct nfq_q_handle *q_handle = NULL;
char buf[65535] __attribute__((aligned));
is_dump_packet_info = 0;