(Unintentionally?) dead code in s_path.c
Bug #959713 reported by
Gareth Edwards
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gEDA |
Confirmed
|
Low
|
Peter Clifton |
Bug Description
Coverity-ID: 201569
In function s_path_
if (ctx->param == 2 || final) {
double xc, yc; /* quadratic control point */
...
} else if (final) {
if (ctx->param > 2) {
...
The second branch will never be taken since, if execution reaches this point, final must be 0. This looks like a bug to me rather than truly dead code.
Changed in geda: | |
status: | New → Confirmed |
Changed in geda: | |
importance: | Undecided → Low |
To post a comment you must log in.
I think this is one for pcjc2... :-)