The buzz::QName default constructor uses QN_EMPTY which is a global variable.
Hence, using an uninitialized QName global in a module different from the one
that QN_EMPTY is defined in introduce a global initialization order problem.
The attached patch moves QN_EMPTY (and QN_XMLNS) into xmlconstants.h, and uses
a function static variable to avoid the global initialization order problem.
PS: Is this the correct place to submit patches?
Original issue reported on code.google.com by bla...@suitabletech.com on 8 Feb 2011 at 10:34
Original issue reported on code.google.com by
bla...@suitabletech.com
on 8 Feb 2011 at 10:34Attachments: