From: Daniel Carl <danielcarl@gmx.de>
Date: Mon, 27 May 2013 18:50:29 +0000 (+0200)
Subject: Fixed issue with empty string in g_strsplit().
X-Git-Url: https://git.owens.tech/wrapped.html/wrapped.html/git?a=commitdiff_plain;h=8dbb003a296902419fcc7e4d47f9c204979f5efa;p=vimb.git

Fixed issue with empty string in g_strsplit().
---

diff --git a/src/bookmark.c b/src/bookmark.c
index ab88aaf..4d3872b 100644
--- a/src/bookmark.c
+++ b/src/bookmark.c
@@ -62,7 +62,7 @@ GList *bookmark_get_by_tags(const char *tags)
     char **parts;
     unsigned int len;
 
-    if (!tags) {
+    if (!tags || *tags == '\0') {
         return NULL;
     }