From 348764269d0d2af3371caeb96cae65976891022c Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Mon, 16 Sep 2013 13:42:02 -0400 Subject: [PATCH] gio-du: show the correct filename in progress We were showing argv[1] in the progress output before, which is not always the filename. --- gio/tests/gio-du.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/tests/gio-du.c b/gio/tests/gio-du.c index b0f1face3..a33cf7357 100644 --- a/gio/tests/gio-du.c +++ b/gio/tests/gio-du.c @@ -150,7 +150,7 @@ main (int argc, char **argv) if (option_use_async) { g_file_measure_disk_usage_async (file, flags, G_PRIORITY_DEFAULT, NULL, - progress, argv[1], async_ready_func, argv_utf8); + progress, argv_utf8, async_ready_func, argv_utf8); outstanding_asyncs++; } else @@ -160,7 +160,7 @@ main (int argc, char **argv) guint64 num_dirs; guint64 num_files; - g_file_measure_disk_usage (file, flags, NULL, progress, argv[1], + g_file_measure_disk_usage (file, flags, NULL, progress, argv_utf8, &disk_usage, &num_dirs, &num_files, &error); print_result (argv_utf8, disk_usage, num_dirs, num_files, error, '\n'); }