diff options
Diffstat (limited to 'navit/support/ezxml/ezxml.c')
-rw-r--r-- | navit/support/ezxml/ezxml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/support/ezxml/ezxml.c b/navit/support/ezxml/ezxml.c index 82b11fb99..7095c7757 100644 --- a/navit/support/ezxml/ezxml.c +++ b/navit/support/ezxml/ezxml.c @@ -630,7 +630,7 @@ ezxml_t ezxml_parse_fd(int fd) size_t l; void *m; - if (fd < 0) return NULL; + if (fd == -1) return NULL; fstat(fd, &st); #ifndef EZXML_NOMMAP |