I found this warning while reviewing Michal's transaction patch.
It was introduced in 9356e8f50436724e985d9a8f5d4f2bc0f5b837bc and it is
visible with the following CFLAGS:
-m64 -mtune=generic -O3 -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wall
-Wextra -Wno-sign-compare -Wno-unused-parameter
From 5bf8ef415b6bc86c6591d9a9925dbb51e4e3423e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrez...@redhat.com>
Date: Tue, 21 Aug 2012 14:02:29 +0200
Subject: [PATCH] Remove compilation warning: ret may be uninitialized
---
src/providers/ldap/sdap_async_initgroups.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c
index be4384e23c7055a160d7f3e68c682b2843f65fdd..890547fccb8d26c0642d009bc70ec2a82fb21d9b 100644
--- a/src/providers/ldap/sdap_async_initgroups.c
+++ b/src/providers/ldap/sdap_async_initgroups.c
@@ -2066,7 +2066,7 @@ struct tevent_req *rfc2307bis_nested_groups_send(
struct sysdb_attrs **groups, size_t num_groups,
hash_table_t *group_hash, size_t nesting)
{
- errno_t ret;
+ errno_t ret = EOK;
struct tevent_req *req;
struct sdap_rfc2307bis_nested_ctx *state;
--
1.7.6.5
_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/sssd-devel