mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
add missing initialization for memory subsystem
This commit is contained in:
parent
6338e2fa6e
commit
9d6c7ecefa
2 changed files with 7 additions and 1 deletions
|
@ -323,6 +323,10 @@ check: if (optarg == endptr)
|
|||
char *nodestr = argv[optind+1];
|
||||
struct format_type *fmt;
|
||||
|
||||
ret = memory_init(0);
|
||||
if (ret)
|
||||
throw RuntimeError("Failed to intialize memory");
|
||||
|
||||
ret = utils::signals_init(quit);
|
||||
if (ret)
|
||||
throw RuntimeError("Failed to initialize signals");
|
||||
|
|
|
@ -188,7 +188,9 @@ int main(int argc, char *argv[])
|
|||
if (!ft)
|
||||
throw RuntimeError("Invalid output format '{}'", format);
|
||||
|
||||
memory_init(0); // Otherwise, ht->size in hash_table_hash() will be zero
|
||||
ret = memory_init(0);
|
||||
if (ret)
|
||||
throw RuntimeError("Failed to initialize memory");
|
||||
|
||||
nt = node_type_lookup("signal");
|
||||
if (!nt)
|
||||
|
|
Loading…
Add table
Reference in a new issue