diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2011-02-08 14:14:51 +0000 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2011-02-08 14:14:51 +0000 |
commit | ee78f6df50691371095c16059f04002aee8dae6b (patch) | |
tree | d84a0aa5bb279771a517fe92fe9eacea3ae2288e /telepathy-logger | |
parent | 2f7537ad765aba1999746a92b941fe362544166f (diff) | |
download | telepathy-logger-ee78f6df50691371095c16059f04002aee8dae6b.tar.gz |
Make strv size check more explicit
Diffstat (limited to 'telepathy-logger')
-rw-r--r-- | telepathy-logger/log-store-pidgin.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/telepathy-logger/log-store-pidgin.c b/telepathy-logger/log-store-pidgin.c index 047c39a..76cdd7d 100644 --- a/telepathy-logger/log-store-pidgin.c +++ b/telepathy-logger/log-store-pidgin.c @@ -779,7 +779,9 @@ log_store_pidgin_get_events_for_files (TplLogStore *self, g_match_info_free (match_info); g_regex_unref (regex); - if (hits == NULL || g_strv_length (hits) < (4 + (guint)is_html)) + if (hits == NULL + || (is_html && g_strv_length (hits) < 5) + || (g_strv_length (hits) < 4)) { g_strfreev (hits); continue; |