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:
J. Krieg
2018-09-02 18:42:44 +02:00
committed by Thilo Graf
parent cf885b1027
commit 9f18bf7960

View File

@@ -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");