diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-06-17 06:23:46 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-06-17 06:23:46 -0700 |
commit | 33c17dd10045a1b7d054e980b31c5859509d5846 (patch) | |
tree | 92c03a8974afdeec5f50f05561497cd7d28264c3 /gc.c | |
parent | a6c50d7ce44dd36c650a085f8bca4fe2e9074001 (diff) | |
download | txr-33c17dd10045a1b7d054e980b31c5859509d5846.tar.gz txr-33c17dd10045a1b7d054e980b31c5859509d5846.tar.bz2 txr-33c17dd10045a1b7d054e980b31c5859509d5846.zip |
Tidy up some vector object initializations.
* lib.c (vector, copy_vec, sub_vec, cat_vec): Set the type
field of the object sooner. Do not malloc between obtaining
the object, and initializing it, because that could throw,
leaving an uninitialized object in the heap space.
Diffstat (limited to 'gc.c')
0 files changed, 0 insertions, 0 deletions