From e1fbf76de0b7682ed0f66883073037fee581e316 Mon Sep 17 00:00:00 2001 From: Jun T Date: Tue, 10 Jun 2014 23:46:15 -0700 Subject: 32765: fix build when not MULTIBYTE_SUPPORT --- Src/glob.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'Src') diff --git a/Src/glob.c b/Src/glob.c index 15a5f70b7..6403e46f7 100644 --- a/Src/glob.c +++ b/Src/glob.c @@ -2129,7 +2129,13 @@ bracechardots(char *str, convchar_t *c1p, convchar_t *c2p) pconv = pnext; MB_METACHARINIT(); pnext += MB_METACHARLENCONV(pconv, &cstart); - if (cstart == WEOF || pnext[0] != '.' || pnext[1] != '.') + if ( +#ifdef MULTIBYTE_SUPPORT + cstart == WEOF || +#else + !cstart || +#endif + pnext[0] != '.' || pnext[1] != '.') return 0; pnext += 2; if (itok(*pnext)) { @@ -2140,7 +2146,13 @@ bracechardots(char *str, convchar_t *c1p, convchar_t *c2p) pconv = pnext; MB_METACHARINIT(); pnext += MB_METACHARLENCONV(pconv, &cend); - if (cend == WEOF || *pnext != Outbrace) + if ( +#ifdef MULTIBYTE_SUPPORT + cend == WEOF || +#else + !cend || +#endif + *pnext != Outbrace) return 0; if (c1p) *c1p = cstart; -- cgit 1.4.1