mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-06-11 09:29:40 +00:00
Correctly initialize used_adapter to NULL
This commit is contained in:
parent
672f01f4e3
commit
5e7c830745
|
@ -251,7 +251,7 @@ pcapif_init_adapter(int adapter_num, void *arg)
|
||||||
|
|
||||||
pcap_if_t *alldevs;
|
pcap_if_t *alldevs;
|
||||||
pcap_if_t *d;
|
pcap_if_t *d;
|
||||||
pcap_if_t *used_adapter;
|
pcap_if_t *used_adapter = NULL;
|
||||||
|
|
||||||
pa = (struct pcapif_private *)malloc(sizeof(struct pcapif_private));
|
pa = (struct pcapif_private *)malloc(sizeof(struct pcapif_private));
|
||||||
if (!pa) {
|
if (!pa) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user