summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/session.c2
-rw-r--r--src/view.c4
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) {
diff --git a/src/view.c b/src/view.c
index 04110a86..e1485311 100644
--- a/src/view.c
+++ b/src/view.c
@@ -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);
}