X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fpaths.c;h=040ed697c083537730a7acb278ab7a15e91fb25b;hp=b4576cc1026863d1bf9f178edb6bfba266b00041;hb=ebe0206c700963ee0ace86cc55fca6570b03cac3;hpb=b6f6a919c8291da9cf2a9ea72ec7f8e47fbd79cf diff --git a/src/paths.c b/src/paths.c index b4576cc1..040ed697 100644 --- a/src/paths.c +++ b/src/paths.c @@ -89,18 +89,13 @@ zap_backslashes(tchar *s) } } -/* Duplicate a path, with backslashes translated into forward slashes; return - * empty string for NULL input. */ +/* Duplicate a path; return empty string for NULL input. */ tchar * canonicalize_fs_path(const tchar *fs_path) { - tchar *canonical_path; - if (!fs_path) fs_path = T(""); - canonical_path = TSTRDUP(fs_path); - zap_backslashes(canonical_path); - return canonical_path; + return TSTRDUP(fs_path); } /* Duplicate a path, with backslashes translated into forward slashes; return