X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fnames.c;h=585ad39ba7238ff6e7583a6afe89c08c6da35923;hb=e33be3d0a1902527f2b5be2388a1322068fcb135;hp=69ab00ebf0ebf8c49225138761cb4c8a7129dff6;hpb=a0fb51e136d3df620eb3189683aae90b25bd8dd7;p=chaz%2Ftar diff --git a/src/names.c b/src/names.c index 69ab00e..585ad39 100644 --- a/src/names.c +++ b/src/names.c @@ -1012,11 +1012,10 @@ contains_dot_dot (char const *name) if (p[0] == '.' && p[1] == '.' && (ISSLASH (p[2]) || !p[2])) return 1; - do + while (! ISSLASH (*p)) { if (! *p++) return 0; } - while (! ISSLASH (*p)); } }