glob_word: remove a check that is always false

This commit is contained in:
Daniel Stenberg 2010-09-12 16:37:55 +02:00
parent 22085f7d6e
commit b5da54e6c9

View File

@ -273,8 +273,6 @@ static GlobCode glob_word(URLGlob *glob, char *pattern,
/* escape character, skip '\' */
++pattern;
++pos;
if (*pattern == '\0') /* but no escaping of '\0'! */
return GLOB_ERROR;
}
*buf++ = *pattern++; /* copy character to literal */
++pos;