I found some strange code in the bp2ncd utility. In line 407 of np2ncd.c
if (i==var_dims_count) {
I can't find where variable "i" is initialized. Should it be included in the else clause on line 376?
You are right, something is illogical there.
I would assume there should be an i = 0; after line 359 because the true branch starting at line 360 does not set i. The false branch does with the for loop.
Hi:
I found some strange code in the bp2ncd utility. In line 407 of np2ncd.c
if (i==var_dims_count) {
I can't find where variable "i" is initialized. Should it be included in the else clause on line 376?