[epiphany/mcatanzaro/more-scan-build: 1/3] history: add assertion to try placating scan-build
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/more-scan-build: 1/3] history: add assertion to try placating scan-build
- Date: Fri, 27 Dec 2019 17:27:39 +0000 (UTC)
commit 93deb727a6be9985b29aa08ed493471952b23f54
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Fri Dec 27 11:20:08 2019 -0600
history: add assertion to try placating scan-build
lib/history/ephy-history-service-hosts-table.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/lib/history/ephy-history-service-hosts-table.c b/lib/history/ephy-history-service-hosts-table.c
index e4a66ea78..4fed463e6 100644
--- a/lib/history/ephy-history-service-hosts-table.c
+++ b/lib/history/ephy-history-service-hosts-table.c
@@ -409,6 +409,7 @@ ephy_history_service_get_host_row_from_url (EphyHistoryService *self,
EphyHistoryHost *host = NULL;
host_locations = get_hostname_and_locations (url, &hostname);
+ g_assert (host_locations != NULL && hostname != NULL);
for (l = host_locations; l != NULL; l = l->next) {
host = ephy_history_service_get_host_row (self, l->data, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]