Skip to content

Commit

Permalink
maptemplate.c: silence false positive warning (CID 1174974)
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed May 15, 2021
1 parent 55dcfd6 commit 359c4a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions maptemplate.c
Expand Up @@ -3550,6 +3550,7 @@ char *processOneToManyJoin(mapservObj* mapserv, joinObj *join)
/* want to do this if there are joined records. */
if(records == MS_FALSE) {
if(join->header != NULL) {
/* coverity[dead_error_line] */
if(stream) fclose(stream);
if((stream = fopen(msBuildPath(szPath, mapserv->map->mappath, join->header), "r")) == NULL) {
msSetError(MS_IOERR, "Error while opening join header file %s.", "processOneToManyJoin()", join->header);
Expand Down

0 comments on commit 359c4a2

Please sign in to comment.