[glib: 1/2] gdbus-tool: Actually use argv[0] basename as program name
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] gdbus-tool: Actually use argv[0] basename as program name
- Date: Tue, 27 Apr 2021 14:00:03 +0000 (UTC)
commit 1000acade777766ed382f0ee8efb060e786c504e
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Tue Apr 27 15:41:57 2021 +0200
gdbus-tool: Actually use argv[0] basename as program name
We initialize it but never actually use.
gio/gdbus-tool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gdbus-tool.c b/gio/gdbus-tool.c
index 1f9e308d5..dac01b763 100644
--- a/gio/gdbus-tool.c
+++ b/gio/gdbus-tool.c
@@ -145,7 +145,7 @@ modify_argv0_for_command (gint *argc, gchar **argv[], const gchar *command)
remove_arg (1, argc, argv);
program_name = g_path_get_basename ((*argv)[0]);
- s = g_strdup_printf ("%s %s", (*argv)[0], command);
+ s = g_strdup_printf ("%s %s", program_name, command);
(*argv)[0] = s;
g_free (program_name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]