Skip to content

Commit

Permalink
initialize?
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner committed Jun 10, 2024
1 parent 57b55c3 commit 1a474de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/include/gdallibrary/gdallibrary.h
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ inline List gdal_read_fields(CharacterVector dsn,

inline NumericVector gdal_feature_count(CharacterVector dsn,
IntegerVector layer, CharacterVector sql, NumericVector ex) {
GDALDataset *poDS;
GDALDataset *poDS = nullptr;
poDS = (GDALDataset*) GDALOpenEx(dsn[0], GDAL_OF_READONLY | GDAL_OF_VECTOR, NULL, NULL, NULL );
if( poDS == NULL )
{
Expand Down

0 comments on commit 1a474de

Please sign in to comment.