Menu

#68 Fix initialiser of TiXmlString::nullrep_

closed
nobody
None
5
2007-04-27
2006-10-20
No

In tinystr.cpp:

// Null rep.
TiXmlString::Rep TiXmlString::nullrep_ = { 0, 0, '\0' };

should be:

// Null rep.
TiXmlString::Rep TiXmlString::nullrep_ = { 0, 0, {'\0'} };

since the third element is initialising an array.

Discussion

  • Lee Thomason

    Lee Thomason - 2007-04-27

    Logged In: YES
    user_id=95308
    Originator: NO

    Good catch. Subtle. Fixed in 2.5.3

     
  • Lee Thomason

    Lee Thomason - 2007-04-27
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.