diff --git a/pjlib-util/src/pjlib-util/scanner.c b/pjlib-util/src/pjlib-util/scanner.c index 975c6875e3..7bd5af0c7f 100644 --- a/pjlib-util/src/pjlib-util/scanner.c +++ b/pjlib-util/src/pjlib-util/scanner.c @@ -277,7 +277,7 @@ PJ_DEF(void) pj_scan_get( pj_scanner *scanner, do { ++s; - } while (pj_cis_match(spec, *s) && PJ_SCAN_CHECK_EOF(s)); + } while (PJ_SCAN_CHECK_EOF(s) && pj_cis_match(spec, *s)); pj_strset3(out, scanner->curptr, s);