changeset 3087:030b956c73b2

Fix a bug in backslash to slash conversion. Closes #1006.
author William Pitcock <nenolod@atheme-project.org>
date Mon, 16 Jul 2007 13:43:27 -0500
parents 20830a69b5f5
children e91fddd8526d
files src/audacious/playlist.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/playlist.c	Mon Jul 16 13:32:18 2007 -0500
+++ b/src/audacious/playlist.c	Mon Jul 16 13:43:27 2007 -0500
@@ -1602,8 +1602,8 @@
     filename = g_strchug(g_strdup(filename_p));
 
     if(cfg.convert_slash)
-    while ((tmp = strchr(filename, '\\')) != NULL)
-        *tmp = '/';
+        while ((tmp = strchr(filename, '\\')) != NULL)
+            *tmp = '/';
 
     if (filename[0] != '/' && !strstr(filename, "://")) {
         path = g_strdup(playlist_name);
@@ -1664,8 +1664,9 @@
 
     filename = g_strchug(g_strdup(filename_p));
 
-    while ((tmp = strchr(filename, '\\')) != NULL)
-        *tmp = '/';
+    if(cfg.convert_slash)
+        while ((tmp = strchr(filename, '\\')) != NULL)
+            *tmp = '/';
 
     if (filename[0] != '/' && !strstr(filename, "://")) {
         path = g_strdup(playlist_name);