Make xundump report invalid record IDs
It failed silently before.
This commit is contained in:
parent
50070a8f9a
commit
5cedc533f8
1 changed files with 4 additions and 1 deletions
|
@ -523,8 +523,11 @@ setnum(int fldno, double dbl)
|
||||||
/*
|
/*
|
||||||
* If this is the record index, put it into cur_id.
|
* If this is the record index, put it into cur_id.
|
||||||
*/
|
*/
|
||||||
if (fldno == 0 && ca->ca_table == cur_type)
|
if (fldno == 0 && ca->ca_table == cur_type) {
|
||||||
|
if (dbl < 0 || (int)dbl != dbl)
|
||||||
|
return gripe("Field %d can't hold this value", fldno + 1);
|
||||||
cur_id = (int)dbl;
|
cur_id = (int)dbl;
|
||||||
|
}
|
||||||
|
|
||||||
memb_ptr = getobj();
|
memb_ptr = getobj();
|
||||||
if (!memb_ptr)
|
if (!memb_ptr)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue