mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-24 04:04:31 +00:00
Added NULL checks
This commit is contained in:
@@ -190,7 +190,7 @@ char * ILibProcessPipe_Manager_OnQuery(void *chain, void *object, int fd, size_t
|
||||
if (node != NULL)
|
||||
{
|
||||
ILibProcessPipe_PipeObject *pj = (ILibProcessPipe_PipeObject*)ILibLinkedList_GetDataFromNode(node);
|
||||
if (pj->metadata != NULL)
|
||||
if (pj!=NULL && pj->metadata != NULL)
|
||||
{
|
||||
*dataLen = strnlen_s(pj->metadata, 1024);
|
||||
ret = pj->metadata;
|
||||
|
||||
Reference in New Issue
Block a user