1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r2435: got rid of another pointless strnequal()

(This used to be commit 1b4cee825e)
This commit is contained in:
Andrew Tridgell 2004-09-20 07:26:35 +00:00 committed by Gerald (Jerry) Carter
parent 677d1bc487
commit 421c0d2a18

View File

@ -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, '\\'))