From 5c2e67e659dc73c52e3a23359129ff95ee63d29c Mon Sep 17 00:00:00 2001 From: buslov Date: Tue, 31 Oct 2017 22:04:13 +0300 Subject: [PATCH] Fix V562 warning from PVS-Studio Static Analyzer It's odd to compare 0 or 1 with a value of 45: !* tok == '-'. Operation ! executes before == --- cvs_direct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cvs_direct.c b/cvs_direct.c index 920487d..8fa3a25 100644 --- a/cvs_direct.c +++ b/cvs_direct.c @@ -775,7 +775,7 @@ static int parse_patch_arg(char * arg, char ** str) if (!tok) return 0; - if (!*tok == '-') + if (!(*tok == '-')) { debug(DEBUG_APPERROR, "diff_opts parse error: no '-' starting argument: %s", *str); return 0;