mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 16:26:21 +00:00
set NULL only when resource != NULL in FREE_SET_NULL
This commit is contained in:
@@ -88,10 +88,11 @@ static int _presence_handler(xmpp_conn_t * const conn,
|
|||||||
static int _ping_timed_handler(xmpp_conn_t * const conn, void * const userdata);
|
static int _ping_timed_handler(xmpp_conn_t * const conn, void * const userdata);
|
||||||
|
|
||||||
#define FREE_SET_NULL(resource) \
|
#define FREE_SET_NULL(resource) \
|
||||||
{\
|
{ \
|
||||||
if (resource != NULL) \
|
if (resource != NULL) { \
|
||||||
free(resource); \
|
free(resource); \
|
||||||
resource = NULL; \
|
resource = NULL; \
|
||||||
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user