tif_dirread.c: suppress CLang static Analyzer 9.0 false positive

This commit is contained in:
Even Rouault 2020-02-06 01:25:03 +01:00
parent 37a02ad493
commit 3334704ebc
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D

View File

@ -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)