summaryrefslogtreecommitdiffstats
path: root/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-03-03 08:48:00 +0100
committerVolker Lendecke <vl@samba.org>2015-03-03 13:14:53 +0100
commit38628b1e32cb480cbd0cef57a34a9fe0216f344c (patch)
treed39fb17f31ef0f0c0f42f39c829d3d050a7e0f7e /auth
parentb3385f74db54bd8a07a0be5515151b633c067da4 (diff)
downloadsamba-38628b1e32cb480cbd0cef57a34a9fe0216f344c.tar.gz
samba-38628b1e32cb480cbd0cef57a34a9fe0216f344c.tar.xz
samba-38628b1e32cb480cbd0cef57a34a9fe0216f344c.zip
Fix the O3 developer build
Different gcc versions complain at different places Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Tue Mar 3 13:14:53 CET 2015 on sn-devel-104
Diffstat (limited to 'auth')
-rw-r--r--auth/credentials/credentials_secrets.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/auth/credentials/credentials_secrets.c b/auth/credentials/credentials_secrets.c
index d259a4daef..5945ffdb4a 100644
--- a/auth/credentials/credentials_secrets.c
+++ b/auth/credentials/credentials_secrets.c
@@ -411,7 +411,7 @@ _PUBLIC_ NTSTATUS cli_credentials_set_stored_principal(struct cli_credentials *c
{
NTSTATUS status;
char *filter;
- char *error_string;
+ char *error_string = NULL;
/* Bleh, nasty recursion issues: We are setting a machine
* account here, so we don't want the 'pending' flag around
* any more */
@@ -424,7 +424,9 @@ _PUBLIC_ NTSTATUS cli_credentials_set_stored_principal(struct cli_credentials *c
SECRETS_PRINCIPALS_DN, filter,
0, NULL, &error_string);
if (!NT_STATUS_IS_OK(status)) {
- DEBUG(1, ("Could not find %s principal in secrets database: %s: %s\n", serviceprincipal, nt_errstr(status), error_string));
+ DEBUG(1, ("Could not find %s principal in secrets database: %s: %s\n",
+ serviceprincipal, nt_errstr(status),
+ error_string ? error_string : "<no error>"));
}
return status;
}