aboutsummaryrefslogtreecommitdiff
path: root/svte.c
diff options
context:
space:
mode:
authormutantturkey <mutantturke@gmail.com>2012-08-29 20:03:13 -0400
committermutantturkey <mutantturke@gmail.com>2012-08-29 20:03:13 -0400
commit38d27f36faa4b4d1f0f6448f879e66a03bfe0396 (patch)
tree1521e880e703d68b255e7f3895595bcc7768dda0 /svte.c
parent64f76f7e2a7fd4620ea84f5e01efbb28b7c29aa8 (diff)
fix a uninitialized variable
Diffstat (limited to 'svte.c')
-rw-r--r--svte.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/svte.c b/svte.c
index 3e990bf..63ebed2 100644
--- a/svte.c
+++ b/svte.c
@@ -326,7 +326,7 @@ static void tab_focus(GtkNotebook *notebook, GtkNotebookPage *page,
/* create a new tab */
static void tab_new() {
term *t;
- int *tmp;
+ int tmp;
char **args = 0;
@@ -385,15 +385,14 @@ static void tab_new() {
vte_terminal_set_colors(VTE_TERMINAL(t->vte), &config->foreground,
&config->background, config->colour_palette, DEFAULT_PALETTE_SIZE);
- *tmp = vte_terminal_match_add_gregex(
+ tmp = vte_terminal_match_add_gregex(
VTE_TERMINAL(t->vte),
g_regex_new(config->url_regex, G_REGEX_CASELESS, G_REGEX_MATCH_NOTEMPTY,
NULL),
0);
- vte_terminal_match_set_cursor_type(VTE_TERMINAL(t->vte), *tmp,
+ vte_terminal_match_set_cursor_type(VTE_TERMINAL(t->vte), tmp,
GDK_HAND2);
- g_free(tmp);
gtk_widget_show_all(svte.notebook);
gtk_notebook_set_current_page(GTK_NOTEBOOK(svte.notebook), index);
gtk_widget_grab_focus(t->vte);