1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-09 04:58:00 -05:00

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 '\' */ /* escape character, skip '\' */
++pattern; ++pattern;
++pos; ++pos;
if (*pattern == '\0') /* but no escaping of '\0'! */
return GLOB_ERROR;
} }
*buf++ = *pattern++; /* copy character to literal */ *buf++ = *pattern++; /* copy character to literal */
++pos; ++pos;