summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-20 07:26:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:52 -0500
commit421c0d2a187481c74ebee0937be9ba0a47752fa6 (patch)
tree666facaf52c62e3189a2e8f1a068fd165868012e /source4
parent677d1bc487c345b899ed0e7ec2cd00a281051a50 (diff)
downloadsamba-421c0d2a187481c74ebee0937be9ba0a47752fa6.tar.gz
samba-421c0d2a187481c74ebee0937be9ba0a47752fa6.tar.bz2
samba-421c0d2a187481c74ebee0937be9ba0a47752fa6.zip
r2435: got rid of another pointless strnequal()
(This used to be commit 1b4cee825e6e3d3710eda15cc25cdf6450feec17)
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/spoolss/dcesrv_spoolss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/spoolss/dcesrv_spoolss.c b/source4/rpc_server/spoolss/dcesrv_spoolss.c
index e3f4279669..8fefb9d6df 100644
--- a/source4/rpc_server/spoolss/dcesrv_spoolss.c
+++ b/source4/rpc_server/spoolss/dcesrv_spoolss.c
@@ -966,7 +966,7 @@ static WERROR spoolss_OpenPrinterEx(struct dcesrv_call_state *dce_call, TALLOC_C
/* Printername must start with \\ */
- if (!strnequal(r->in.printername, "\\\\", 2))
+ if (strncmp(r->in.printername, "\\\\", 2) == 0)
return WERR_INVALID_PARAM;
if (strchr_m(r->in.printername + 2, '\\'))