c->uri is unused

Signed-off-by: Christoph Lohmann <20h@r-36.net>
This commit is contained in:
David Dufberg 2013-09-10 14:45:18 +02:00 committed by Christoph Lohmann
parent 83df29393f
commit 7e9a37f25f

4
surf.c
View File

@ -47,7 +47,7 @@ typedef struct Client {
WebKitWebView *view; WebKitWebView *view;
WebKitWebInspector *inspector; WebKitWebInspector *inspector;
char *title, *linkhover; char *title, *linkhover;
const char *uri, *needle; const char *needle;
gint progress; gint progress;
struct Client *next; struct Client *next;
gboolean zoomed, fullscreen, isinspecting, sslfailed; gboolean zoomed, fullscreen, isinspecting, sslfailed;
@ -636,7 +636,7 @@ loaduri(Client *c, const Arg *arg) {
} }
/* prevents endless loop */ /* prevents endless loop */
if(c->uri && strcmp(u, c->uri) == 0) { if(strcmp(u, geturi(c)) == 0) {
reload(c, &a); reload(c, &a);
} else { } else {
webkit_web_view_load_uri(c->view, u); webkit_web_view_load_uri(c->view, u);