[tracker/wip/carlosg/coverity-fixes: 9/16] libtracker-data: Do not check for out variable being NULL
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/coverity-fixes: 9/16] libtracker-data: Do not check for out variable being NULL
- Date: Sat, 23 Oct 2021 18:42:00 +0000 (UTC)
commit 04decee63de99e5337c7cf5b15fcc56208049580
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Oct 23 13:55:21 2021 +0200
libtracker-data: Do not check for out variable being NULL
It is being trusted as non-NULL elsewhere, and the caller is indeed
passing a value reference. There is no need for the NULL check here.
CID: #1507947
src/libtracker-data/tracker-data-manager.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index 746d14465..05f800028 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -1430,8 +1430,7 @@ out:
fail:
g_free(object_location);
- if (loaded_successfully)
- *loaded_successfully = FALSE;
+ *loaded_successfully = FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]