summaryrefslogtreecommitdiff
path: root/src/caja-application.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-23 12:38:44 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2021-12-21 15:22:03 +0100
commit1153ce676a25d21dc3dd3e67dc21e343b28b55bf (patch)
tree239b1ca1a42c8dcd400272491011215b31edabc1 /src/caja-application.c
parent7c00cf317849bfe9e565336e5a911effe16b98bb (diff)
downloadcaja-1153ce676a25d21dc3dd3e67dc21e343b28b55bf.tar.bz2
caja-1153ce676a25d21dc3dd3e67dc21e343b28b55bf.tar.xz
caja-application: avoid SEGV when profiling/debugging code
Diffstat (limited to 'src/caja-application.c')
-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 ecfc6a82..8f920108 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];