# | Line 381 | Line 381 | globmatch( /* check for match of s against pattern p | |
---|---|---|
381 | s++; | |
382 | break; | |
383 | case '\\': /* literal next */ | |
384 | < | p++; |
384 | > | if (!*++p) |
385 | > | return(0); |
386 | /* fall through */ | |
387 | default: /* normal character */ | |
388 | < | if (!*s | (*p != *s)) |
388 | > | if (*p != *s) |
389 | return(0); | |
390 | s++; | |
391 | break; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |