From 5f9d0a05c2831f3d624d00d3eadbcce902f7addc Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 15 Aug 2024 15:03:28 +0200 Subject: [PATCH] OpenFileGDB raster: do not generate debug 'tmp.jpg' file when reading JPEG tiles This is a left-over from a debugging step, that could potential crashes if that file cannot be created --- ogr/ogrsf_frmts/openfilegdb/gdalopenfilegdbrasterband.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ogr/ogrsf_frmts/openfilegdb/gdalopenfilegdbrasterband.cpp b/ogr/ogrsf_frmts/openfilegdb/gdalopenfilegdbrasterband.cpp index 7e337ebb0910..794ffc36b332 100644 --- a/ogr/ogrsf_frmts/openfilegdb/gdalopenfilegdbrasterband.cpp +++ b/ogr/ogrsf_frmts/openfilegdb/gdalopenfilegdbrasterband.cpp @@ -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(