summaryrefslogtreecommitdiff
path: root/libgpo
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-11-12 10:16:06 +0100
committerAndrew Bartlett <abartlet@samba.org>2018-11-14 05:07:15 +0100
commit159f753732cdc1e4491f93617779861fb9d73bc7 (patch)
tree1afbff1beca71661f4696ba129096fc899379e01 /libgpo
parent9c37ed26f0a814f77c934ae190f48d0a1e673f83 (diff)
downloadsamba-159f753732cdc1e4491f93617779861fb9d73bc7.tar.gz
libgpo: Make sure status is intialized
Found by cppcheck. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13680 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'libgpo')
-rw-r--r--libgpo/gpo_ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgpo/gpo_ldap.c b/libgpo/gpo_ldap.c
index fec00053b49..f087203f28a 100644
--- a/libgpo/gpo_ldap.c
+++ b/libgpo/gpo_ldap.c
@@ -474,7 +474,7 @@ ADS_STATUS ads_get_gpo(ADS_STRUCT *ads,
const char *guid_name,
struct GROUP_POLICY_OBJECT *gpo)
{
- ADS_STATUS status;
+ ADS_STATUS status = ADS_ERROR(LDAP_NO_SUCH_OBJECT);
LDAPMessage *res = NULL;
char *dn;
const char *filter;