]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_urlglob: fix compiler warning "unreachable code"
authorDaniel Stenberg <daniel@haxx.se>
Mon, 14 Sep 2020 22:31:18 +0000 (00:31 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 14 Sep 2020 22:31:18 +0000 (00:31 +0200)
(On Windows builds.)

Follow-up to 70a3b003d9

src/tool_urlglob.c

index 96c514493e0eb35bd7ab0cf6703c849f96a4bc38..23238b14b1c5a110e21f840f21f44b16a7a2f158 100644 (file)
@@ -698,8 +698,8 @@ CURLcode glob_match_url(char **result, char *filename, struct URLGlob *glob)
     *result = sanitized;
     return CURLE_OK;
   }
-#endif /* MSDOS || WIN32 */
-
+#else
   *result = curlx_dyn_ptr(&dyn);
   return CURLE_OK;
+#endif /* MSDOS || WIN32 */
 }