summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-02-13 08:50:25 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-02-13 11:54:53 -0500
commitae765daed93b64b9b4177466a2191561b6734e63 (patch)
treebd0b80bab4ee63b299ad3b1b97d3e06de0a73fb9 /src
parentbbee21a2b99ebd1eca24d0a3d48c998747d68fdc (diff)
downloadsssd-ae765daed93b64b9b4177466a2191561b6734e63.tar.gz
sssd-ae765daed93b64b9b4177466a2191561b6734e63.tar.xz
sssd-ae765daed93b64b9b4177466a2191561b6734e63.zip
Fix uninitialized in_transaction
Coverity #12521 and #12491
Diffstat (limited to 'src')
-rw-r--r--src/db/sysdb_services.c2
-rw-r--r--src/providers/ldap/sdap_async_services.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb_services.c b/src/db/sysdb_services.c
index 425e9ed71..693263099 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 bde5820d2..b472e4072 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;