summaryrefslogtreecommitdiff
path: root/src/pugixml.cpp
diff options
context:
space:
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 c1797c5..0f3bc29 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -1841,7 +1841,7 @@ namespace pugi
bool xml_attribute::as_bool() const
{
// only look at first char
- char first = (_attr && _attr->value) ? *_attr->value : 0;
+ char first = (_attr && _attr->value) ? *_attr->value : '\0';
// 1*, t* (true), T* (True), y* (yes), Y* (YES)
return (first == '1' || first == 't' || first == 'T' || first == 'y' || first == 'Y');