summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorportix <none@none>2012-06-24 13:41:01 +0200
committerportix <none@none>2012-06-24 13:41:01 +0200
commit606be3129817fa096550734314b7d1ac85b2c02e (patch)
treee36038a1d18b6c42bacbea8133f229cc546fa447 /src/util.c
parentd9e78be255c203ed463e70449b02910e8ff23159 (diff)
downloaddwb-606be3129817fa096550734314b7d1ac85b2c02e.zip
Replace dwb.files struct with a char-array, free all paths when in dwb_clean_up
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 16ab1e2d..6d8b79f1 100644
--- a/src/util.c
+++ b/src/util.c
@@ -31,7 +31,7 @@ util_get_temp_filename(const char *prefix) {
struct timeval t;
gettimeofday(&t, NULL);
char *filename = g_strdup_printf("%s%lu", prefix, t.tv_usec + t.tv_sec*1000000);
- char *cache_path = g_build_filename(dwb.files.cachedir, filename, NULL);
+ char *cache_path = g_build_filename(dwb.files[FILES_CACHEDIR], filename, NULL);
g_free(filename);
return cache_path;