mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-08-25 02:47:01 +00:00
Fixed copying command line arguments
This commit is contained in:
parent
93b84c4366
commit
e2a2f45469
|
@ -499,6 +499,11 @@ gitg_window_load_repository(GitgWindow *window, gchar const *path, gint argc, gc
|
|||
if (!haspath && argc)
|
||||
{
|
||||
ar = (gchar const **)g_new(gchar *, ++argc);
|
||||
|
||||
int i;
|
||||
for (i = 0; i < argc - 1; ++i)
|
||||
ar[i] = argv[i];
|
||||
|
||||
ar[argc - 1] = path;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue