diff options
Diffstat (limited to 'src/bookmarks.c')
-rw-r--r-- | src/bookmarks.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bookmarks.c b/src/bookmarks.c index 8bde5b8b..54b0407f 100644 --- a/src/bookmarks.c +++ b/src/bookmarks.c | |||
@@ -42,6 +42,7 @@ void deinit_Bookmark(iBookmark *d) { | |||
42 | } | 42 | } |
43 | 43 | ||
44 | iBool hasTag_Bookmark(const iBookmark *d, const char *tag) { | 44 | iBool hasTag_Bookmark(const iBookmark *d, const char *tag) { |
45 | if (!d) return iFalse; | ||
45 | iRegExp *pattern = new_RegExp(format_CStr("\\b%s\\b", tag), caseSensitive_RegExpOption); | 46 | iRegExp *pattern = new_RegExp(format_CStr("\\b%s\\b", tag), caseSensitive_RegExpOption); |
46 | iRegExpMatch m; | 47 | iRegExpMatch m; |
47 | init_RegExpMatch(&m); | 48 | init_RegExpMatch(&m); |