diff options
-rw-r--r-- | src/session.c | 2 | ||||
-rw-r--r-- | src/view.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/session.c b/src/session.c index 1ded8bb1..3d7175fe 100644 --- a/src/session.c +++ b/src/session.c @@ -52,7 +52,7 @@ session_get_group(const char *name, gboolean *is_marked) char *content = NULL; gboolean mark; guint l = strlen (name); - const char *group; + const char *group = NULL; char **groups = session_get_groups(); if (groups) { @@ -1414,8 +1414,10 @@ view_add(const char *uri, gboolean background) } if (EMIT_SCRIPT(CREATE_TAB)) { - ScriptSignal signal = { VIEW(ret)->script_wv, SCRIPTS_SIG_META(NULL, CREATE_TAB, 0) }; + char *json = util_create_json(1, CHAR, "uri", uri); + ScriptSignal signal = { VIEW(ret)->script_wv, SCRIPTS_SIG_META(json, CREATE_TAB, 0) }; scripts_emit(&signal); + g_free(json); } |