Skip to content
Snippets Groups Projects
Commit d9ee1b21 authored by rswindell's avatar rswindell
Browse files

Bug-fix in backslash() - don't convert "" to "\".

parent c10cf9e9
No related branches found
No related tags found
No related merge requests found
......@@ -822,12 +822,10 @@ char* DLLCALL backslash(char* path)
p=lastchar(path);
if(!IS_PATH_DELIM(*p)) {
if(*p && !IS_PATH_DELIM(*p)) {
#if defined(__unix__)
/* Convert trailing backslash to forwardslash on *nix */
if(*p!='\\' && *p)
#else
if(*p)
if(*p!='\\')
#endif
p++;
*p=PATH_DELIM;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment