Skip to content

Commit

Permalink
OpenFileGDB raster: do not generate debug 'tmp.jpg' file when reading…
Browse files Browse the repository at this point in the history
… JPEG tiles

This is a left-over from a debugging step, that could potential crashes
if that file cannot be created
  • Loading branch information
rouault committed Aug 15, 2024
1 parent 3527c3f commit 5f9d0a0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ogr/ogrsf_frmts/openfilegdb/gdalopenfilegdbrasterband.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1550,10 +1550,6 @@ CPLErr GDALOpenFileGDBRasterBand::IReadBlock(int nBlockXOff, int nBlockYOff,
return CE_Failure;
}

VSILFILE *fp = VSIFOpenL("tmp.jpg", "wb");
VSIFWriteL(pabyData + nJPEGOffset, nJPEGSize, 1, fp);
VSIFCloseL(fp);

CPLString osTmpFilename;
osTmpFilename.Printf("/vsimem/_openfilegdb/%p.jpg", this);
VSIFCloseL(VSIFileFromMemBuffer(
Expand Down

0 comments on commit 5f9d0a0

Please sign in to comment.