Fix:Core:Typo
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 25 Aug 2011 22:01:07 +0000 (22:01 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 25 Aug 2011 22:01:07 +0000 (22:01 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4714 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/file.c

index 14324aa..5215378 100644 (file)
@@ -847,7 +847,7 @@ file_wordexp_new(const char *pattern)
 int
 file_wordexp_get_count(struct file_wordexp *wexp)
 {
-       if (wexp->error)
+       if (wexp->err)
                return 1;
        return wexp->we.we_wordc;
 }
@@ -855,7 +855,7 @@ file_wordexp_get_count(struct file_wordexp *wexp)
 char **
 file_wordexp_get_array(struct file_wordexp *wexp)
 {
-       if (wexp->error)
+       if (wexp->err)
                return &wexp->pattern;
        return wexp->we.we_wordv;
 }