diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-06-28 10:39:58 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-06-28 10:39:58 +0000 |
commit | a83d9f18a13ac19119081458bb87cf7c6b877ea2 (patch) | |
tree | d2137a913cf907f366de3d112e3f4c9264217994 /navit/xmlconfig.c | |
parent | 99838c79a3dfdf531d648eab4afb978856af4143 (diff) | |
download | navit-svn-a83d9f18a13ac19119081458bb87cf7c6b877ea2.tar.gz |
Fix:Core:one is a valid number for wordexp
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3433 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/xmlconfig.c')
-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); |