summaryrefslogtreecommitdiff
path: root/navit/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'navit/file.c')
-rw-r--r--navit/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/file.c b/navit/file.c
index 14324aa50..5215378a0 100644
--- a/navit/file.c
+++ b/navit/file.c
@@ -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;
}