Changeset: e16a117b629b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e16a117b629b
Modified Files:
geom/monetdb5/geom.c
Branch: sfcgal
Log Message:
Do not return NULL as result
diffs (13 lines):
diff --git a/geom/monetdb5/geom.c b/geom/monetdb5/geom.c
--- a/geom/monetdb5/geom.c
+++ b/geom/monetdb5/geom.c
@@ -7819,7 +7819,8 @@ wkbAsX3D(str *res, wkb **geomWKB, int *m
}
if (empty) {
//the geometry is empty
- (*res) = NULL;
+ if ((*res = GDKstrdup(str_nil)) == NULL)
+ throw(MAL, "geom.wkbAsX3D", MAL_MALLOC_FAIL);
return MAL_SUCCEED;
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list