Skip to content

Commit

Permalink
limiting scope of variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Vasudeo Desai committed Feb 2, 2025
1 parent cd954b3 commit 484a898
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/vector/Vlib/open_ogr.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,9 @@ int V2_open_old_ogr(struct Map_info *Map)

G_debug(3, "V2_open_old_ogr(): name = %s mapset = %s", Map->name,
Map->mapset);
const char *map_name = NULL;

if (Vect_open_fidx(Map, &(Map->fInfo.ogr.offset)) != 0) {
map_name = Vect_get_full_name(Map);
const char *map_name = Vect_get_full_name(Map);
G_warning(_("Unable to open feature index file for vector map <%s>"),
map_name);
G_free((void *)map_name);
Expand Down

0 comments on commit 484a898

Please sign in to comment.