comparison src/bar_info.c @ 700:b2eb4ff74d13

Use g_build_filename() to build paths.
author zas_
date Tue, 20 May 2008 21:51:25 +0000
parents 8268cbe682f1
children e6ebae313d46
comparison
equal deleted inserted replaced
699:9873d695a9c1 700:b2eb4ff74d13
99 mode_t mode = 0755; 99 mode_t mode = 0755;
100 100
101 comment_dir = cache_get_location(CACHE_TYPE_METADATA, fd->path, FALSE, &mode); 101 comment_dir = cache_get_location(CACHE_TYPE_METADATA, fd->path, FALSE, &mode);
102 if (cache_ensure_dir_exists(comment_dir, mode)) 102 if (cache_ensure_dir_exists(comment_dir, mode))
103 { 103 {
104 comment_path = g_strconcat(comment_dir, "/", fd->name, 104 gchar *filename = g_strconcat(fd->name, GQ_CACHE_EXT_METADATA, NULL);
105 GQ_CACHE_EXT_METADATA, NULL); 105
106 comment_path = g_build_filename(comment_dir, filename, NULL);
107 g_free(filename);
106 } 108 }
107 g_free(comment_dir); 109 g_free(comment_dir);
108 } 110 }
109 111
110 if (comment_path) 112 if (comment_path)