diff options
author | portix <none@none> | 2012-03-29 15:32:57 +0200 |
---|---|---|
committer | portix <none@none> | 2012-03-29 15:32:57 +0200 |
commit | 621f3da1f940997e075f03a23e51add9f792041a (patch) | |
tree | ba5f739440c7208aa16a08bb041e187419065dbe /src/session.c | |
parent | 7f34483796a200375c9b633f1f2fb7e9bdc3c11f (diff) | |
download | dwb-621f3da1f940997e075f03a23e51add9f792041a.zip |
Fix possible segfault in application_start
Diffstat (limited to 'src/session.c')
-rw-r--r-- | src/session.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/session.c b/src/session.c index 6474c3f9..c008495c 100644 --- a/src/session.c +++ b/src/session.c @@ -174,6 +174,7 @@ session_restore(char *name, int flags) { WebKitWebBackForwardList *bf_list = NULL; int last = 1; char *end; + gboolean ret = false; int locked_state = 0; if (name == NULL) { _session_name = g_strdup("default"); @@ -236,10 +237,11 @@ session_restore(char *name, int flags) { } dwb_focus(dwb.state.fview); g_free(uri); + ret = true; clean: g_free(group); - return true; + return ret; }/*}}}*/ /* session_save(const char *) {{{*/ |