From fc525c8a25fa2623eaae1b12281988e0aea1f220 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 21 Jul 2011 14:10:50 +0200 Subject: s3:loadparm: fix a check that was accidentially an assignment in lp_servicebynum() --- source3/param/loadparm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 875aa6ed75..e1c5aab253 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -6421,7 +6421,7 @@ struct loadparm_service *lp_service(const char *pszServiceName) struct loadparm_service *lp_servicebynum(int snum) { - if (snum = -1 || !LP_SNUM_OK(snum)) { + if ((snum == -1) || !LP_SNUM_OK(snum)) { return NULL; } return ServicePtrs[snum]; -- cgit