From 66f71d2ebc7344bf67c1be8f72d795bb5c352b77 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sat, 29 Jul 2017 11:36:33 +0900 Subject: [PATCH] embryo_cc - remove pointless test for null byte and space space wins. the nul byte test is pointless. not a bug but pointless code found by PVS studio --- src/bin/embryo/embryo_cc_sc2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/embryo/embryo_cc_sc2.c b/src/bin/embryo/embryo_cc_sc2.c index fddc102cf0..c416ad1d15 100644 --- a/src/bin/embryo/embryo_cc_sc2.c +++ b/src/bin/embryo/embryo_cc_sc2.c @@ -941,7 +941,7 @@ command(void) error(8); /* invalid/non-constant expression */ fline = (int)val; - while (*lptr == ' ' && *lptr != '\0') + while (*lptr == ' ') lptr++; /* skip whitespace */ if (*lptr == '"') {