From 4bd3b6b9694f38733d6b6b9444eb5d77eb985d87 Mon Sep 17 00:00:00 2001 From: Marcelo Roberto Jimenez Date: Thu, 8 Mar 2012 17:42:02 -0300 Subject: [PATCH] =?UTF-8?q?SF=20Bug=20Tracker=20id=203499878=20-=20UpnpUnS?= =?UTF-8?q?ubscribeAsync():=20=E2=80=98retVal=E2=80=99=20may=20be=20used?= =?UTF-8?q?=20uninitialized?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Submitted: Marcelo Roberto Jimenez ( mroberto ) - 2012-03-08 12:38:57 PST src/api/upnpapi.c: In function ‘UpnpUnSubscribeAsync’: src/api/upnpapi.c:2060:6: warning: ‘retVal’ may be used uninitialized in this function (cherry picked from commit 29ee36b1cad224015d70848df398d4d62f3d1937) --- ChangeLog | 9 +++++++++ upnp/src/api/upnpapi.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8a7434e..7fbdfee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -318,6 +318,15 @@ Version 1.8.0 Version 1.6.16 ******************************************************************************* +2012-03-08 Marcelo Roberto Jimenez + + SF Bug Tracker id 3499878 - UpnpUnSubscribeAsync(): ‘retVal’ may be used uninitialized + + Submitted: Marcelo Roberto Jimenez ( mroberto ) - 2012-03-08 12:38:57 PST + + src/api/upnpapi.c: In function ‘UpnpUnSubscribeAsync’: + src/api/upnpapi.c:2060:6: warning: ‘retVal’ may be used uninitialized in this function + 2012-03-08 Marcelo Roberto Jimenez SF Bug Tracker id 3175217 - Crash bug in Parser_addNamespace() diff --git a/upnp/src/api/upnpapi.c b/upnp/src/api/upnpapi.c index 84a4b23..b1722d0 100644 --- a/upnp/src/api/upnpapi.c +++ b/upnp/src/api/upnpapi.c @@ -2057,7 +2057,7 @@ int UpnpUnSubscribeAsync( Upnp_FunPtr Fun, const void *Cookie_const) { - int retVal; + int retVal = UPNP_E_SUCCESS; ThreadPoolJob job; struct Handle_Info *SInfo = NULL; struct UpnpNonblockParam *Param;