tif_dirread.c: suppress CLang static Analyzer 9.0 false positive
This commit is contained in:
parent
37a02ad493
commit
3334704ebc
@ -5180,6 +5180,7 @@ TIFFFetchNormalTag(TIFF* tif, TIFFDirEntry* dp, int recover)
|
|||||||
if (err==TIFFReadDirEntryErrOk)
|
if (err==TIFFReadDirEntryErrOk)
|
||||||
{
|
{
|
||||||
int m;
|
int m;
|
||||||
|
assert(data); /* avoid CLang static Analyzer false positive */
|
||||||
m=TIFFSetField(tif,dp->tdir_tag,data[0],data[1]);
|
m=TIFFSetField(tif,dp->tdir_tag,data[0],data[1]);
|
||||||
_TIFFfree(data);
|
_TIFFfree(data);
|
||||||
if (!m)
|
if (!m)
|
||||||
|
Loading…
Reference in New Issue
Block a user