From 159f753732cdc1e4491f93617779861fb9d73bc7 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 12 Nov 2018 10:16:06 +0100 Subject: [PATCH] libgpo: Make sure status is intialized Found by cppcheck. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13680 Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- libgpo/gpo_ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;