mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
src/gui-neutrino/lib/xmltree/xmlinterface.cpp: fix build when compiling with -Werror
because with this the warning: warning: 'xmlgz_file' may be used uninitialized in this function [-Wmaybe-uninitialized] warning: 'xml_file' may be used uninitialized in this function [-Wmaybe-uninitialized] is treated as an error and the build aborts - so let's remove this warning... Thanks to Janus for reporting this and the suggested fix Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -374,8 +374,8 @@ xmlDocPtr parseXmlFile(const char * filename, bool warning_by_nonexistence /* =
|
|||||||
XMLTreeParser* tree_parser;
|
XMLTreeParser* tree_parser;
|
||||||
size_t done;
|
size_t done;
|
||||||
size_t length;
|
size_t length;
|
||||||
FILE* xml_file;
|
FILE* xml_file = NULL;
|
||||||
gzFile xmlgz_file;
|
gzFile xmlgz_file = NULL;
|
||||||
std::string fn = filename;
|
std::string fn = filename;
|
||||||
bool zipped = (fn.substr(fn.find_last_of(".") + 1) == "gz");
|
bool zipped = (fn.substr(fn.find_last_of(".") + 1) == "gz");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user