svn commit: samba r19840 - in branches/SAMBA_3_0/source/utils: .
vlendec at samba.org
vlendec at samba.org
Wed Nov 22 16:39:08 GMT 2006
Author: vlendec
Date: 2006-11-22 16:39:07 +0000 (Wed, 22 Nov 2006)
New Revision: 19840
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19840
Log:
Fix an uninitialized variable
Modified:
branches/SAMBA_3_0/source/utils/net_sam.c
Changeset:
Modified: branches/SAMBA_3_0/source/utils/net_sam.c
===================================================================
--- branches/SAMBA_3_0/source/utils/net_sam.c 2006-11-22 15:55:48 UTC (rev 19839)
+++ branches/SAMBA_3_0/source/utils/net_sam.c 2006-11-22 16:39:07 UTC (rev 19840)
@@ -378,6 +378,13 @@
printf("Account policy \"%s\" description: %s\n", account_policy,
account_policy_get_desc(field));
+
+ if (!pdb_get_account_policy(field, &old_value)) {
+ fprintf(stderr, "Valid account policy, but unable to "
+ "fetch value!\n");
+ return -1;
+ }
+
printf("Account policy \"%s\" value was: %d\n", account_policy,
old_value);
More information about the samba-cvs
mailing list