Skip to content

Commit

Permalink
v.in.ogr: check return code for Vect_close (related to PostGIS Topology)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60553 15284696-431f-4ddb-bdfa-cd5b030d7da7
  • Loading branch information
landam committed May 28, 2014
1 parent df473cc commit 562e3ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vector/v.in.ogr/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,8 @@ int main(int argc, char *argv[])
}

delete_table = Vect_maptype(&Map) != GV_FORMAT_NATIVE;
Vect_close(&Map);
if (0 != Vect_close(&Map))
G_fatal_error(_("Import failed"));

/* create index - may fail on non-unique categories */
if (db_create_index2(driver, Fi->table, key_column) != DB_OK)
Expand Down

0 comments on commit 562e3ac

Please sign in to comment.