diff options
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r-- | src/ephy-shell.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c index a2c374cfa..631e6f44a 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -227,6 +227,7 @@ static void ephy_shell_init (EphyShell *gs) { EphyEmbedSingle *single; + EphyShell **ptr = &ephy_shell; gs->priv = g_new0 (EphyShellPrivate, 1); gs->priv->session = NULL; @@ -237,7 +238,7 @@ ephy_shell_init (EphyShell *gs) ephy_shell = gs; g_object_add_weak_pointer (G_OBJECT(ephy_shell), - (gpointer *)&ephy_shell); + (gpointer *)ptr); ephy_debug_init (); ephy_thread_helpers_init (); |