glob_word: remove a check that is always false
authorDaniel Stenberg <daniel@haxx.se>
Sun, 12 Sep 2010 14:37:55 +0000 (16:37 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 12 Sep 2010 14:37:55 +0000 (16:37 +0200)
src/urlglob.c

index 8435b25..e49b762 100644 (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;