Skip to content

Commit

Permalink
Fix report of darktable command line
Browse files Browse the repository at this point in the history
Due to handling of argc/argv in callers of dt_init() we can only use g_strdupv()
if called from main darktable; check this via init_gui for safety.
  • Loading branch information
jenshannoschwalm authored and TurboGit committed Aug 26, 2024
1 parent 93903b0 commit 02c08c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/darktable.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ int dt_init(int argc, char *argv[], const gboolean init_gui, const gboolean load
GSList *config_override = NULL;

// keep a copy of argv array for possibly reporting later
gchar **myoptions = argc > 1 ? g_strdupv(argv) : NULL;
gchar **myoptions = init_gui && argc > 1 ? g_strdupv(argv) : NULL;

for(int k = 1; k < argc; k++)
{
Expand Down

0 comments on commit 02c08c0

Please sign in to comment.