mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
libsmbconf: untangle assignment and test in for-loop condition.
Michael (This used to be commit 4339caff09e1277ae33d3810043bcb3f4e7c4e45)
This commit is contained in:
parent
3c40c2d7d3
commit
ec12f0a25a
@ -342,8 +342,8 @@ static WERROR smbconf_reg_get_values(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
|
||||
for (count = 0;
|
||||
W_ERROR_IS_OK(werr = reg_enumvalue(tmp_ctx, key, count, &valname,
|
||||
&valvalue));
|
||||
werr = reg_enumvalue(tmp_ctx, key, count, &valname, &valvalue),
|
||||
W_ERROR_IS_OK(werr);
|
||||
count++)
|
||||
{
|
||||
char *valstring;
|
||||
@ -562,8 +562,8 @@ static WERROR smbconf_reg_get_share_names(struct smbconf_ctx *ctx,
|
||||
}
|
||||
|
||||
for (count = 0;
|
||||
W_ERROR_IS_OK(werr = reg_enumkey(tmp_ctx, key, count,
|
||||
&subkey_name, NULL));
|
||||
werr = reg_enumkey(tmp_ctx, key, count, &subkey_name, NULL),
|
||||
W_ERROR_IS_OK(werr);
|
||||
count++)
|
||||
{
|
||||
if (strequal(subkey_name, GLOBAL_NAME)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user