fix a warning: "airpcap_loader.c(2287) : warning C4700: local variable 'ad' used without having been initialized"

svn path=/trunk/; revision=19771
This commit is contained in:
Ulf Lamping 2006-11-01 23:22:13 +00:00
parent ff1a0d33ad
commit 21671dbedf
1 changed files with 1 additions and 1 deletions

View File

@ -2284,7 +2284,7 @@ set_airpcap_decryption(gboolean on_off)
/* Set the driver decryption */
ad_driver = airpcap_if_open(fake_if_info->name, ebuf);
if(ad)
if(ad_driver)
{
if(on_off)
airpcap_if_set_driver_decryption_state(ad_driver,AIRPCAP_DECRYPTION_ON);