Skip to content

Commit 355934c

Browse files
committed
CI fixes.
1 parent 13b7c37 commit 355934c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

alg/viewshed/viewshed_executor.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,15 @@ struct Lines
4242
std::vector<double> sd; //!< SD mask.
4343

4444
/// Constructor
45-
Lines() : cur(), result(), prev(), pitchMask(), input(), sd()
45+
Lines() : cur(), result(), prev(), pitchMask(), input(), prevTmp(), sd()
4646
{
4747
}
4848

4949
/// Constructor that initializes to line length
5050
/// \param lineLen Line length.
5151
explicit Lines(size_t lineLen)
52-
: cur(lineLen), result(lineLen), prev(), pitchMask(), input(), sd()
52+
: cur(lineLen), result(lineLen), prev(), pitchMask(), input(),
53+
prevTmp(), sd()
5354
{
5455
}
5556
};

apps/gdal_viewshed.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ MAIN_START(argc, argv)
312312
/* Open source SD raster file. */
313313
/* -------------------------------------------------------------------- */
314314
GDALDatasetH hSdDS = GDALOpen(localOpts.osSdFilename.c_str(), GA_ReadOnly);
315-
if (hSrcDS == nullptr)
315+
if (hSdDS == nullptr)
316316
exit(2);
317317

318318
GDALRasterBandH hSdBand = GDALGetRasterBand(hSdDS, 1);

0 commit comments

Comments
 (0)