From fda90ab4b73b19d4638e8b7cd4c90458e51f9e3e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 6 Feb 2009 14:05:17 +0200 Subject: [PATCH] UPnP: Removed shadowed variable --- src/wps/wps_upnp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wps/wps_upnp.c b/src/wps/wps_upnp.c index 5fdd27dfa..00e2bc3c0 100644 --- a/src/wps/wps_upnp.c +++ b/src/wps/wps_upnp.c @@ -702,7 +702,7 @@ static int subscription_first_event(struct subscription *s) struct subscription * subscription_start(struct upnp_wps_device_sm *sm, char *callback_urls) { - struct subscription *s = NULL; + struct subscription *s; time_t now = time(NULL); time_t expire = now + UPNP_SUBSCRIBE_SEC; @@ -711,7 +711,7 @@ struct subscription * subscription_start(struct upnp_wps_device_sm *sm, /* If too many subscriptions, remove oldest */ if (sm->n_subscriptions >= MAX_SUBSCRIPTIONS) { - struct subscription *s = sm->subscriptions; + s = sm->subscriptions; wpa_printf(MSG_INFO, "WPS UPnP: Too many subscriptions, " "trashing oldest"); subscription_unlink(s);