--- rxvt-unicode/src/rxvtutil.C 2004/08/15 00:37:04 1.1 +++ rxvt-unicode/src/rxvtutil.C 2004/08/21 05:32:00 1.2 @@ -6,6 +6,8 @@ class byteorder byteorder; +unsigned int byteorder::e; + byteorder::byteorder () { union { @@ -21,5 +23,20 @@ e = w.u; } +void * +zero_initialized::operator new (size_t s) +{ + void *p = malloc (s); + + memset (p, 0, s); + return p; +} + +void +zero_initialized::operator delete (void *p, size_t s) +{ + free (p); +} +