diff options
author | portix <portix@gmx.net> | 2011-09-20 11:07:45 +0200 |
---|---|---|
committer | portix <portix@gmx.net> | 2011-09-20 11:07:45 +0200 |
commit | 29bb304202cc3ddbb08146d53b2bc8b1833572a7 (patch) | |
tree | 1bb3c7700d8e5081141ea98b5a5d0511311f2b11 /src/session.c | |
parent | f3980991ef0157b4a29f40916b0a50008fba4944 (diff) | |
download | dwb-29bb304202cc3ddbb08146d53b2bc8b1833572a7.zip |
Don't initialize bf_list due to a segfault
Diffstat (limited to 'src/session.c')
-rw-r--r-- | src/session.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/session.c b/src/session.c index 4bd0a258..ea660a9a 100644 --- a/src/session.c +++ b/src/session.c @@ -91,7 +91,7 @@ session_restore(const char *name) { } char **lines = g_strsplit(group, "\n", -1); WebKitWebView *web, *lastweb = NULL; - WebKitWebBackForwardList *bf_list = NULL; + WebKitWebBackForwardList *bf_list; int last = 1; char *uri = NULL; @@ -108,10 +108,8 @@ session_restore(const char *name) { } lastweb = web; } - if (bf_list != NULL) { - WebKitWebHistoryItem *item = webkit_web_history_item_new_with_data(line[1], line[2]); - webkit_web_back_forward_list_add_item(bf_list, item); - } + WebKitWebHistoryItem *item = webkit_web_history_item_new_with_data(line[1], line[2]); + webkit_web_back_forward_list_add_item(bf_list, item); last = current; FREE(uri); uri = g_strdup(line[1]); |