summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 11:36:33 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 11:36:33 +0900
commit66f71d2ebc7344bf67c1be8f72d795bb5c352b77 (patch)
treeb7619e1875ccf2a7c8137b3f1a45b9967ab77303
parent7620d5d957c5fa04883e34a026f92604373cdb6d (diff)
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
-rw-r--r--src/bin/embryo/embryo_cc_sc2.c2
1 files changed, 1 insertions, 1 deletions
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)
941 error(8); /* invalid/non-constant expression */ 941 error(8); /* invalid/non-constant expression */
942 fline = (int)val; 942 fline = (int)val;
943 943
944 while (*lptr == ' ' && *lptr != '\0') 944 while (*lptr == ' ')
945 lptr++; /* skip whitespace */ 945 lptr++; /* skip whitespace */
946 if (*lptr == '"') 946 if (*lptr == '"')
947 { 947 {