• Philipp A. Hartmann's avatar
    tutorial.cpp: fix insitu parsing (closes #273) · 953cda14
    Philipp A. Hartmann authored
    The insitu parsing example in the tutorial is using a local char
    buffer inside a nested scope.  After leaving the scope, the
    resulting Document object still references this (now invalid)
    memory locations.
    
    Some compilers reuse this space on the stack for other local
    variables later in the function, corrupting the original document.
    
    Drop the local scope to extend the lifetime of the buffer.
    953cda14
Name
Last commit
Last update
..
capitalize Loading commit data...
condense Loading commit data...
messagereader Loading commit data...
pretty Loading commit data...
prettyauto Loading commit data...
serialize Loading commit data...
simpledom Loading commit data...
simplereader Loading commit data...
simplewriter Loading commit data...
tutorial Loading commit data...
CMakeLists.txt Loading commit data...