sp_list_ports(): Actually set list_ptr NULL as documented.

This commit is contained in:
Uwe Hermann 2015-05-02 21:18:36 +02:00
parent 6aad5bdd47
commit 6392641545
1 changed files with 2 additions and 0 deletions

View File

@ -334,6 +334,8 @@ SP_API enum sp_return sp_list_ports(struct sp_port ***list_ptr)
if (!list_ptr)
RETURN_ERROR(SP_ERR_ARG, "Null result pointer");
*list_ptr = NULL;
#ifdef NO_ENUMERATION
RETURN_ERROR(SP_ERR_SUPP, "Enumeration not supported on this platform");
#else