mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r19840: Fix an uninitialized variable
(This used to be commit c4b5e8c7a0
)
This commit is contained in:
parent
9e29e5d2b8
commit
ca70f53930
@ -378,6 +378,13 @@ static int net_sam_policy_set(int argc, const char **argv)
|
||||
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user