Skip to content

Commit d833638

Browse files
committed
Don't test the loop variable for values not in the loop's range.
1 parent 9a51ad8 commit d833638

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/emc/ini/initraj.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,15 @@ static int loadTraj(EmcIniFile *trajInifile)
295295
homePose.b = d;
296296
else if (t == 5)
297297
homePose.c = d;
298+
/*
299+
* The following have no effect. The loop only counts [0..5].
298300
else if (t == 6)
299301
homePose.u = d;
300302
else if (t == 7)
301303
homePose.v = d;
302304
else
303305
homePose.w = d;
306+
*/
304307

305308
// position string ptr past this value
306309
len += strlen(home);

0 commit comments

Comments
 (0)