summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-23 12:38:44 +0200
committerraveit65 <[email protected]>2022-07-21 19:33:52 +0200
commit085d20cd65574ba322b2c3a6b2e1d53b9da6c3f2 (patch)
tree86fc465d06a9e61196ba466c825286e01f149ab7
parentd3bd716f11873cb4c00b585cc4c66ebbf16be636 (diff)
downloadcaja-085d20cd65574ba322b2c3a6b2e1d53b9da6c3f2.tar.bz2
caja-085d20cd65574ba322b2c3a6b2e1d53b9da6c3f2.tar.xz
caja-application: avoid SEGV when profiling/debugging code
-rw-r--r--src/caja-application.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/caja-application.c b/src/caja-application.c
index ff63618c..692d4f4b 100644
--- a/src/caja-application.c
+++ b/src/caja-application.c
@@ -368,13 +368,12 @@ caja_application_open (GApplication *app,
gboolean browser_window = FALSE;
gboolean open_in_tabs = FALSE;
const gchar *geometry = NULL;
- const char splitter = '=';
g_debug ("Open called on the GApplication instance; %d files", n_files);
/* Check if local command line passed --browser, --geometry or --tabs */
if (strlen (options) > 0) {
- gchar** splitedOptions = g_strsplit (options, &splitter, 3);
+ gchar** splitedOptions = g_strsplit (options, "=", 3);
sscanf (splitedOptions[0], "%d", &browser_window);
if (strcmp (splitedOptions[1], "NULL") != 0) {
geometry = splitedOptions[1];