Looks like the original code omitted to set the default config values causing
the addition of a ShpDumperDestroy() call to fall over on some platforms due
to uninitialised pointers.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7533
b70326c6-7e19-0410-871a-
916f4a2858ee
void test_ShpDumperCreate(void)
{
config = (SHPDUMPERCONFIG*)calloc(1, sizeof(SHPDUMPERCONFIG));
+ set_config_defaults(config);
state = ShpDumperCreate(config);
CU_ASSERT_PTR_NOT_NULL(state);
- CU_ASSERT_EQUAL(state->outtype, 's');
+ CU_ASSERT_EQUAL(state->config->fetchsize, 100);
}
void test_ShpDumperDestroy(void)