miniupnpc/upnpcommands.c: minor fix to UPNP_GetStatusInfo()

*uptime = 0; instead of the useless uptime = 0;
This commit is contained in:
Thomas Bernard 2015-02-06 11:39:39 +01:00
parent 557fd71fb1
commit e280c3dd3a
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/* $Id: upnpcommands.c,v 1.42 2014/01/31 13:18:25 nanard Exp $ */
/* $Id: upnpcommands.c,v 1.45 2015/02/06 10:37:00 nanard Exp $ */
/* Project : miniupnp
* Author : Thomas Bernard
* Copyright (c) 2005-2012 Thomas Bernard
* Copyright (c) 2005-2015 Thomas Bernard
* This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution.
* */
@ -159,7 +159,7 @@ UPNP_GetStatusInfo(const char * controlURL,
if(up)
sscanf(up,"%u",uptime);
else
uptime = 0;
*uptime = 0;
}
if(lastconnerror) {