bufr_load_template() doesn't look like it should even work
Bug #1253128 reported by
cpb
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libECBUFR |
Fix Committed
|
Low
|
vanh souvanlasy |
Bug Description
bufr_load_
EntryTableB *e;
...
if (strcmp( tok, "VALUE")==0)
...
if (e != NULL)
Problem is, e is never actually initialized anywhere. I'm not sure why it hasn't failed in production.
To post a comment you must log in.
The missing line was: "e = bufr_fetch_tableB ( tbls, icode );" this line used to be there in previous versions, but seems to
have been deleted, a slipped finger on the keyboard probably.
This problem never came up because this part of the code is rarely or never used, it was meant to allow setting values within a template. Since most setting of values are done in datafile instead.