summaryrefslogtreecommitdiff
path: root/src/pugixml.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-04-12 22:06:17 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-04-12 22:06:17 -0700
commit9539c488c29e7c2c06afa63abce70785cb5d15c5 (patch)
tree1ec55159b246a110ed1b04fdf281de35fb321e27 /src/pugixml.cpp
parentf04b56e178a93960c89c5ca1b7d6ebdd19416cb8 (diff)
Fix unused variable warning
Also fix test in wchar_t mode.
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r--src/pugixml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 61aa5ae..7c463cc 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -5306,7 +5306,7 @@ namespace pugi
name_sentry sentry = { _root, _root->name };
- _root->name = 0;
+ sentry.node->name = 0;
return impl::load_buffer_impl(doc, _root, const_cast<void*>(contents), size, options, encoding, false, false, &extra->buffer);
}