summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing-filenames.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport-testing-filenames.c')
-rw-r--r--src/transport/transport-testing-filenames.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/transport/transport-testing-filenames.c b/src/transport/transport-testing-filenames.c
index 865907007..8d493864e 100644
--- a/src/transport/transport-testing-filenames.c
+++ b/src/transport/transport-testing-filenames.c
@@ -40,25 +40,6 @@ extract_filename(const char *file)
40 char *filename = NULL; 40 char *filename = NULL;
41 char *res; 41 char *res;
42 42
43#if WINDOWS
44 if ((strlen(pch) >= 3) && pch[1] == ':')
45 {
46 if (NULL != strstr(pch, "\\"))
47 {
48 pch = strtok(pch, "\\");
49 while (pch != NULL)
50 {
51 pch = strtok(NULL, "\\");
52 if (pch != NULL)
53 filename = pch;
54 }
55 }
56 }
57 if (filename != NULL)
58 pch = filename; /* If we miss the next condition, filename = pch will
59 * not harm us.
60 */
61#endif
62 if (NULL != strstr(pch, "/")) 43 if (NULL != strstr(pch, "/"))
63 { 44 {
64 pch = strtok(pch, "/"); 45 pch = strtok(pch, "/");