summaryrefslogtreecommitdiff
path: root/browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'browser.c')
-rw-r--r--browser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/browser.c b/browser.c
index bc0093b..dd62228 100644
--- a/browser.c
+++ b/browser.c
@@ -159,6 +159,7 @@ client_destroy(GtkWidget *obj, gpointer data)
void
client_new(const gchar *uri)
{
+ struct Client *c;
gchar *capitalized_name = NULL;
if (cooperative_instances && !cooperative_alone)
@@ -168,7 +169,7 @@ client_new(const gchar *uri)
return;
}
- struct Client *c = malloc(sizeof(struct Client));
+ c = malloc(sizeof(struct Client));
if (!c)
{
fprintf(stderr, __NAME__": fatal: malloc failed\n");