diff options
-rw-r--r-- | navit/xmlconfig.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/navit/xmlconfig.c b/navit/xmlconfig.c index dd481e07..bad3ecf5 100644 --- a/navit/xmlconfig.c +++ b/navit/xmlconfig.c @@ -558,18 +558,14 @@ xinclude(GMarkupParseContext *context, const gchar **attribute_names, const gcha we_files=file_wordexp_get_array(we); count=file_wordexp_get_count(we); dbg(1,"%d results\n", count); - if (count != 1) { - if (file_exists(we_files[0])) { + if (file_exists(we_files[0])) { for (i = 0 ; i < count ; i++) { dbg(1,"result[%d]='%s'\n", i, we_files[i]); doc_new.href=we_files[i]; parse_file(&doc_new, error); } - } else { - dbg(0,"Unable to include %s\n",we_files[0]); - } } else { - dbg(0,"Unable to include %s\n",href); + dbg(0,"Unable to include %s\n",we_files[0]); } file_wordexp_destroy(we); |