From ae765daed93b64b9b4177466a2191561b6734e63 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 13 Feb 2012 08:50:25 -0500 Subject: Fix uninitialized in_transaction Coverity #12521 and #12491 --- src/db/sysdb_services.c | 2 +- src/providers/ldap/sdap_async_services.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db/sysdb_services.c b/src/db/sysdb_services.c index 425e9ed7..69326309 100644 --- a/src/db/sysdb_services.c +++ b/src/db/sysdb_services.c @@ -652,7 +652,7 @@ sysdb_svc_delete(struct sysdb_ctx *sysdb, TALLOC_CTX *tmp_ctx; struct ldb_result *res; unsigned int i; - bool in_transaction; + bool in_transaction = false; tmp_ctx = talloc_new(NULL); if (!tmp_ctx) { diff --git a/src/providers/ldap/sdap_async_services.c b/src/providers/ldap/sdap_async_services.c index bde5820d..b472e407 100644 --- a/src/providers/ldap/sdap_async_services.c +++ b/src/providers/ldap/sdap_async_services.c @@ -260,7 +260,7 @@ sdap_save_services(TALLOC_CTX *mem_ctx, errno_t ret, sret; time_t now; size_t i; - bool in_transaction; + bool in_transaction = false; char *higher_usn = NULL; char *usn_value; TALLOC_CTX *tmp_ctx; -- cgit