summaryrefslogtreecommitdiff
path: root/src/cgg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgg.c')
-rw-r--r--src/cgg.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/cgg.c b/src/cgg.c
index c158dfd..f295077 100644
--- a/src/cgg.c
+++ b/src/cgg.c
@@ -108,6 +108,7 @@ main (int argc, char* argv[])
time_t time_start = time (NULL);
time_t time_stop;
gchar *s;
+ TPathInfo *path_info;
/*
* this initialize the library and check potential ABI mismatches
@@ -169,7 +170,14 @@ main (int argc, char* argv[])
setup->verbose = verbose;
setup->update_mode = update;
setup->override_nofullsize = fullsize;
- build_tree (setup, source_dir, dst_dir, NULL, -1, jobs);
+
+ path_info = g_malloc0 (sizeof (TPathInfo));
+ path_info->source_root = g_strdup (source_dir);
+ path_info->src_dir = g_strdup (source_dir);
+ path_info->dest_root = g_strdup (dst_dir);
+ path_info->dest_dir = g_strdup (dst_dir);
+ build_tree (setup, path_info, NULL, -1, jobs);
+ free_path_info (path_info);
/* Write feeds */
if (news_feed) {