s = webkit_get_default_session() is unnecessary here (in setup()).
It is called again later, right before it is used.

diff -r 7a931a352cf9 surf.c
--- a/surf.c    Thu Sep 09 11:15:02 2010 +0200
+++ b/surf.c    Thu Mar 10 15:55:47 2011 +0100
@@ -681,7 +681,6 @@
                g_thread_init(NULL);
 
        dpy = GDK_DISPLAY();
-       s = webkit_get_default_session();
 
        /* atoms */
        atoms[AtomFind] = XInternAtom(dpy, "_SURF_FIND", False);

Reply via email to