Commit 7fdabac5 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Check table index for valid range.

parent 273e68cc
......@@ -822,6 +822,9 @@ int tableInqParName(int tableID, int code, char *varname)
{
int err = 1;
if ( tableID >= 0 && tableID < MAX_TABLE ) { } else
Error("Invalid table ID %d", tableID);
if ( tableID != UNDEFID )
{
int npars = parTable[tableID].npars;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment