summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-07-20 16:48:07 +0200
committerMichael Adam <obnox@samba.org>2011-07-21 17:24:16 +0200
commit2568a8b4635bb7fb76dbd4bdd5eb2decb09f708a (patch)
tree6d988198b19a0bf2736fcfacdcd29a791ce3a2a3
parentfb766cd597dd0579f00ce3ca0acb5a422804d901 (diff)
downloadsamba-2568a8b4635bb7fb76dbd4bdd5eb2decb09f708a.tar.gz
samba-2568a8b4635bb7fb76dbd4bdd5eb2decb09f708a.tar.bz2
samba-2568a8b4635bb7fb76dbd4bdd5eb2decb09f708a.zip
s3:loadparm: untangle assignment from check in do_section()
-rw-r--r--source3/param/loadparm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 3b4ff6a799..875aa6ed75 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -7674,8 +7674,8 @@ static bool do_section(const char *pszSectionName, void *userdata)
/* issued by the post-processing of a previous section. */
DEBUG(2, ("Processing section \"[%s]\"\n", pszSectionName));
- if ((iServiceIndex = add_a_service(&sDefault, pszSectionName))
- < 0) {
+ iServiceIndex = add_a_service(&sDefault, pszSectionName);
+ if (iServiceIndex < 0) {
DEBUG(0, ("Failed to add a new service\n"));
return (false);
}