| # | Line 363 | Line 363 | globmatch( /* check for match of s against pattern p | |
|---|---|---|
| 363 | while (*s++); | |
| 364 | return(0); | |
| 365 | case '[': /* character set */ | |
| 366 | < | setmatch = *s == *++p; |
| 366 | > | setmatch = (*s == *++p); |
| 367 | if (!*p) | |
| 368 | return(0); | |
| 369 | while (*++p != ']') { | |
| # | Line 384 | Line 384 | globmatch( /* check for match of s against pattern p | |
| 384 | p++; | |
| 385 | /* fall through */ | |
| 386 | default: /* normal character */ | |
| 387 | < | if (*p != *s) |
| 387 | > | if (!*s | (*p != *s)) |
| 388 | return(0); | |
| 389 | s++; | |
| 390 | break; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |