| commit | 6bb420106f77ef8f134a1d4c001668e832f96cc9 | [log] [tgz] |
|---|---|---|
| author | Andrey Zonov <zont@FreeBSD.org> | Thu Feb 14 12:32:06 2013 +0100 |
| committer | Petr Machata <pmachata@redhat.com> | Thu Feb 14 12:32:06 2013 +0100 |
| tree | 112642ebd9dfcf43d5472e673cd6ea2cee778816 | |
| parent | 67f7adebdea215a583df9536e874ecd1a4162c4e [diff] [blame] |
Fix build with Clang on FreeBSD
diff --git a/glob.c b/glob.c index b26637f..06fec47 100644 --- a/glob.c +++ b/glob.c
@@ -27,7 +27,7 @@ static ssize_t match_character_class(const char *glob, size_t length, size_t from) { - size_t i; + size_t i = 0; if (length > 0) for (i = from + 2; i < length - 1 && glob[++i] != ':'; ) ;