mirror of
git://sigrok.org/libserialport
synced 2023-08-10 21:13:24 +03:00
sp_list_ports(): Actually set list_ptr NULL as documented.
This commit is contained in:
parent
6aad5bdd47
commit
6392641545
@ -334,6 +334,8 @@ SP_API enum sp_return sp_list_ports(struct sp_port ***list_ptr)
|
|||||||
if (!list_ptr)
|
if (!list_ptr)
|
||||||
RETURN_ERROR(SP_ERR_ARG, "Null result pointer");
|
RETURN_ERROR(SP_ERR_ARG, "Null result pointer");
|
||||||
|
|
||||||
|
*list_ptr = NULL;
|
||||||
|
|
||||||
#ifdef NO_ENUMERATION
|
#ifdef NO_ENUMERATION
|
||||||
RETURN_ERROR(SP_ERR_SUPP, "Enumeration not supported on this platform");
|
RETURN_ERROR(SP_ERR_SUPP, "Enumeration not supported on this platform");
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user