static bool smbconf_value_exists(struct registry_key *key, const char *param)
{
bool ret = false;
- WERROR werr = WERR_OK;
+ WERROR werr;
TALLOC_CTX *ctx = talloc_stackframe();
struct registry_value *value = NULL;
const char *valstr)
{
struct registry_value val;
- WERROR werr = WERR_OK;
+ WERROR werr;
sbcErr err;
char *subkeyname;
const char *canon_valname;
char ***value_strings)
{
TALLOC_CTX *tmp_ctx = NULL;
- WERROR werr = WERR_OK;
+ WERROR werr;
sbcErr err;
uint32_t count;
struct registry_value *valvalue = NULL;
*/
static sbcErr smbconf_reg_init(struct smbconf_ctx *ctx, const char *path)
{
- WERROR werr = WERR_OK;
+ WERROR werr;
sbcErr err;
struct security_token *token;
static sbcErr smbconf_reg_drop(struct smbconf_ctx *ctx)
{
char *path, *p;
- WERROR werr = WERR_OK;
+ WERROR werr;
sbcErr err = SBC_ERR_OK;
struct registry_key *parent_key = NULL;
struct registry_key *new_key = NULL;
const char *param,
char **valstr)
{
- WERROR werr = WERR_OK;
+ WERROR werr;
sbcErr err;
struct registry_key *key = NULL;
struct registry_value *value = NULL;
uint32_t num_includes,
const char **includes)
{
- WERROR werr = WERR_OK;
sbcErr err;
struct registry_key *key = NULL;
TALLOC_CTX *tmp_ctx = talloc_stackframe();
}
if (num_includes == 0) {
+ WERROR werr;
if (!smbconf_value_exists(key, INCLUDES_VALNAME)) {
err = SBC_ERR_OK;
goto done;