Skip to content
Snippets Groups Projects
Commit ae81f19c authored by deuce's avatar deuce
Browse files

Allow a null set to be passed to xpms_destroy()

parent 1b59ff2b
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,8 @@ void xpms_destroy(struct xpms_set *xpms_set) ...@@ -24,6 +24,8 @@ void xpms_destroy(struct xpms_set *xpms_set)
{ {
int i; int i;
if(!xpms_set)
return;
for(i=0; i<xpms_set->sock_count; i++) { for(i=0; i<xpms_set->sock_count; i++) {
if(xpms_set->socks[i].sock != INVALID_SOCKET) { if(xpms_set->socks[i].sock != INVALID_SOCKET) {
if(xpms_set->lprintf!=NULL) if(xpms_set->lprintf!=NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment