[tracker-miners] extract/html: Use correct check on elements of strv
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners] extract/html: Use correct check on elements of strv
- Date: Tue, 22 Aug 2017 16:46:59 +0000 (UTC)
commit ca93b1c245069f463bd50e4dbdcccd4a8168cc46
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Aug 21 01:48:34 2017 +0200
extract/html: Use correct check on elements of strv
The == '\0' check happened on keywords[i], not the first char of
keywords[i] as it would be expected on a strv.
src/tracker-extract/tracker-extract-html.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-html.c b/src/tracker-extract/tracker-extract-html.c
index 497f009..58c2023 100644
--- a/src/tracker-extract/tracker-extract-html.c
+++ b/src/tracker-extract/tracker-extract-html.c
@@ -154,7 +154,7 @@ parser_start_element (void *data,
keywords = g_strsplit (content, ",", -1);
if (keywords) {
for (i = 0; keywords[i] != NULL; i++) {
- if (!keywords[i] || keywords[i] == '\0') {
+ if (!keywords[i] || keywords[i][0] == '\0') {
continue;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]