} Bookmark;
static GList *load(const char *file);
-static gboolean comtains_all_tags(char **src, unsigned int s, char **query, unsigned int q);
+static gboolean contains_all_tags(char **src, unsigned int s, char **query, unsigned int q);
static void free_bookmark(Bookmark *bm);
/**
for (GList *l = src; l; l = l->next) {
Bookmark *bm = (Bookmark*)l->data;
- if (comtains_all_tags(bm->tags, g_strv_length(bm->tags), parts, len)) {
+ if (bm->tags
+ && contains_all_tags(bm->tags, g_strv_length(bm->tags), parts, len)
+ ) {
res = g_list_prepend(res, g_strdup(bm->uri));
}
}
* Checks if the given source array of pointer contains all those entries
* given as array of search strings.
*/
-static gboolean comtains_all_tags(char **src, unsigned int s, char **query, unsigned int q)
+static gboolean contains_all_tags(char **src, unsigned int s, char **query, unsigned int q)
{
unsigned int i, n;
g_list_free(source);
} else if (type == VB_INPUT_OPEN || type == VB_INPUT_TABOPEN) {
source = history_get_all(HISTORY_URL);
- tmp = filter_list(tmp, source, (Comp_Func)util_strcasestr, suffix),
+ tmp = filter_list(tmp, source, (Comp_Func)util_strcasestr, suffix);
/* prepend the bookmark items */
tmp = g_list_concat(bookmark_get_by_tags(suffix), tmp);
comps.completions = init_completion(comps.completions, tmp, prefix);