Changeset: 863610a64261 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=863610a64261 Modified Files: geom/monetdb5/geom.c Branch: geo Log Message:
Don't initialize variable multiple times. diffs (25 lines): diff --git a/geom/monetdb5/geom.c b/geom/monetdb5/geom.c --- a/geom/monetdb5/geom.c +++ b/geom/monetdb5/geom.c @@ -5140,13 +5140,15 @@ BUN mbrHASH(mbr *atom) { /* NULL: generic nil mbr. */ /* returns a pointer to a nil-mbr. */ +static mbr mbrNIL = { + GDK_flt_min, /* flt_nil */ + GDK_flt_min, + GDK_flt_min, + GDK_flt_min +}; + mbr *mbrNULL(void) { - static mbr mbrNIL; - mbrNIL.xmin = flt_nil; - mbrNIL.ymin = flt_nil; - mbrNIL.xmax = flt_nil; - mbrNIL.ymax = flt_nil; - return (&mbrNIL); + return &mbrNIL; } /* COMP: compare two mbrs. */ _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list