summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
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];