[xar] checking a struct is NULL to use it?
[xar] checking a struct is NULL to use it?
- Subject: [xar] checking a struct is NULL to use it?
- From: Stephane Sudre <email@hidden>
- Date: Wed, 13 Apr 2016 09:04:56 +0200
There is some "strange" code in the latest xar project (302):
archive.c - line 802:
if( previousAttr == NULL )
XAR(previousAttr)->attrs = XAR_ATTR(currentAttr)->next;
with:
#define XAR(x) ((struct __xar_t *)(x))
At least, Xcode static analyzer is not happy. It's also not happy in
14 other locations in the source code.
Bug ID#25698642
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden