catch null access.
This commit is contained in:
parent
36a0023fbf
commit
dcccf3aa85
@ -61,7 +61,8 @@ lookupBlob(void *blob, size_t len, PL_blob_t *type)
|
|||||||
/* just keep a linked chain for now */
|
/* just keep a linked chain for now */
|
||||||
ae = SWI_Blobs;
|
ae = SWI_Blobs;
|
||||||
while (ae) {
|
while (ae) {
|
||||||
if (RepBlobProp(ae->PropsOfAE)->blob_t == type &&
|
if (ae->PropsOfAE &&
|
||||||
|
RepBlobProp(ae->PropsOfAE)->blob_t == type &&
|
||||||
ae->rep.blob->length == len &&
|
ae->rep.blob->length == len &&
|
||||||
!memcmp(ae->rep.blob->data, blob, len))
|
!memcmp(ae->rep.blob->data, blob, len))
|
||||||
return ae;
|
return ae;
|
||||||
|
Reference in New Issue
Block a user