summaryrefslogtreecommitdiff
path: root/apps/bookmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/bookmark.c')
-rw-r--r--apps/bookmark.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c
index 3234e77d9b..567f98ac29 100644
--- a/apps/bookmark.c
+++ b/apps/bookmark.c
@@ -41,7 +41,7 @@
41#include "list.h" 41#include "list.h"
42#include "plugin.h" 42#include "plugin.h"
43#include "file.h" 43#include "file.h"
44#include "filefuncs.h" 44#include "pathfuncs.h"
45 45
46#define MAX_BOOKMARKS 10 46#define MAX_BOOKMARKS 10
47#define MAX_BOOKMARK_SIZE 350 47#define MAX_BOOKMARK_SIZE 350
@@ -1090,10 +1090,10 @@ static bool generate_bookmark_file_name(const char *in)
1090 { 1090 {
1091#ifdef HAVE_MULTIVOLUME 1091#ifdef HAVE_MULTIVOLUME
1092 /* The "root" of an extra volume need special handling too. */ 1092 /* The "root" of an extra volume need special handling too. */
1093 bool volume_root = (strip_volume(in, global_bookmark_file_name) && 1093 const char *filename;
1094 !strcmp("/", global_bookmark_file_name)); 1094 path_strip_volume(in, &filename, true);
1095 bool volume_root = *filename == '\0';
1095#endif 1096#endif
1096
1097 strcpy(global_bookmark_file_name, in); 1097 strcpy(global_bookmark_file_name, in);
1098 if(global_bookmark_file_name[len-1] == '/') 1098 if(global_bookmark_file_name[len-1] == '/')
1099 len--; 1099 len--;