Browse Source

fix instantiation of static zero uuid to work with new TR_INSTANCE makro

1.0.0
Georg Hopp 12 years ago
parent
commit
e5535c4646
  1. 8
      src/uuid/uuid.c

8
src/uuid/uuid.c

@ -53,8 +53,10 @@ uuidClone(void * _this, void * _base)
TR_INIT_IFACE(TR_Class, uuidCtor, uuidDtor, uuidClone);
TR_CREATE_CLASS(TR_Uuid, NULL, TR_IF(TR_Class));
TR_INSTANCE(TR_Uuid, TR_uuidZero) {
.uuid.value = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
}};
TR_INSTANCE(
TR_Uuid,
TR_uuidZero,
.uuid.value = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
);
// vim: set ts=4 sw=4:
Loading…
Cancel
Save