[tracker-miners/wip/carlosg/coverity-fixes: 2/28] tracker-extract: Drop NULL check
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/coverity-fixes: 2/28] tracker-extract: Drop NULL check
- Date: Sun, 24 Oct 2021 11:33:39 +0000 (UTC)
commit cc9b662ddd47805ca150b4418336b630d15e8b04
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Oct 23 22:54:54 2021 +0200
tracker-extract: Drop NULL check
These strings shouldn't be NULL here.
CIDs: #365667, #365668
src/tracker-extract/tracker-extract-html.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-html.c b/src/tracker-extract/tracker-extract-html.c
index a446b4a54..76e31befc 100644
--- a/src/tracker-extract/tracker-extract-html.c
+++ b/src/tracker-extract/tracker-extract-html.c
@@ -298,13 +298,11 @@ tracker_extract_get_metadata (TrackerExtractInfo *info,
g_strstrip (pd.plain_text->str);
g_strstrip (pd.title->str);
- if (pd.title->str &&
- *pd.title->str != '\0') {
+ if (*pd.title->str != '\0') {
tracker_resource_set_string (metadata, "nie:title", pd.title->str);
}
- if (pd.plain_text->str &&
- *pd.plain_text->str != '\0') {
+ if (*pd.plain_text->str != '\0') {
tracker_resource_set_string (metadata, "nie:plainTextContent", pd.plain_text->str);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]