Correctly initialize used_adapter to NULL

This commit is contained in:
goldsimon 2010-05-16 16:05:26 +00:00
parent 672f01f4e3
commit 5e7c830745
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ pcapif_init_adapter(int adapter_num, void *arg)
pcap_if_t *alldevs;
pcap_if_t *d;
pcap_if_t *used_adapter;
pcap_if_t *used_adapter = NULL;
pa = (struct pcapif_private *)malloc(sizeof(struct pcapif_private));
if (!pa) {