openbsd-ports/www/dwb/patches/patch-src_session_c
landry b92e2dc842 Import dwb 2014.03.07.
dwb is a lightweight web browser based on the webkit web browser engine and
the gtk toolkit. dwb is highly customizable and can be easily configured
through a web interface.
It is mostly keyboard driven, inspired by firefox's vimperator plugin.

From maintainer Henrik Friedrichsen with tweaks from me and sthen@, ok sthen@
2014-09-08 20:01:03 +00:00

13 lines
498 B
Plaintext

$OpenBSD: patch-src_session_c,v 1.1.1.1 2014/09/08 20:01:03 landry Exp $
--- src/session.c.orig Wed Sep 3 22:40:39 2014
+++ src/session.c Wed Sep 3 22:41:00 2014
@@ -37,7 +37,7 @@ session_get_groups()
{
char **groups = NULL;
char *content = util_get_file_content(dwb.files[FILES_SESSION], NULL);
- if (content)
+ if (content && strlen(content))
{
groups = g_regex_split_simple("^g:", content, G_REGEX_MULTILINE, G_REGEX_MATCH_NOTEMPTY);
g_free(content);