From c120314c0b14db869ef70a5a9ae074b0c35b0951 Mon Sep 17 00:00:00 2001 From: Vyacheslav Koshcheyev Date: Mon, 14 Apr 2014 17:49:34 +0700 Subject: [PATCH] fix pointer returning to empty string on a stack --- src/pugixml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 4f3fb08..d5053fc 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -3939,7 +3939,7 @@ PUGI__NS_END namespace pugi { - static const PUGIXML_CHAR* g_empty_string = PUGIXML_TEXT(""); + static const PUGIXML_CHAR g_empty_string[] = PUGIXML_TEXT(""); PUGI__FN xml_writer_file::xml_writer_file(void* file_): file(file_)