From cb5f5eac3820895fe5dbabb27265a06ae3e1075d Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 23 Jun 2008 11:09:38 +0200 Subject: libsmbconf: fastpaths first in smbconf_reg_valname_valid(). Before dropping into lp_parameter_is_valid(). Michael (This used to be commit 59beb7acd777a4c224dce90fbbff7a137d2b89c1) --- source3/lib/smbconf/smbconf_reg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib/smbconf') diff --git a/source3/lib/smbconf/smbconf_reg.c b/source3/lib/smbconf/smbconf_reg.c index dfce7502c58..395e44a31e5 100644 --- a/source3/lib/smbconf/smbconf_reg.c +++ b/source3/lib/smbconf/smbconf_reg.c @@ -66,8 +66,8 @@ static bool smbconf_reg_valname_forbidden(const char *valname) static bool smbconf_reg_valname_valid(const char *valname) { - return (lp_parameter_is_valid(valname) && - !smbconf_reg_valname_forbidden(valname)); + return (!smbconf_reg_valname_forbidden(valname) && + lp_parameter_is_valid(valname)); } /** -- cgit