1
0
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:
Uwe Hermann 2015-05-02 21:18:36 +02:00
parent 6aad5bdd47
commit 6392641545

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