Cosmetic change to uri.c

git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@507 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
Marcelo Roberto Jimenez 2010-03-21 15:12:28 +00:00
parent f6a30b842c
commit c56ab5613e

View File

@ -43,6 +43,7 @@
#include <lwres/netdb.h> #include <lwres/netdb.h>
#endif #endif
#endif #endif
#include <assert.h>
#include "config.h" #include "config.h"
@ -458,13 +459,14 @@ int parse_hostport(
ret = 1; ret = 1;
} }
// Check if address was converted successfully. /* Check if address was converted successfully. */
if( ret <= 0 ) { if (ret <= 0) {
return UPNP_E_INVALID_URL; return UPNP_E_INVALID_URL;
} }
out->text.size = hostport_size; out->text.size = hostport_size;
out->text.buff = in; out->text.buff = in;
return hostport_size; return hostport_size;
} }