diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-07-27 15:25:05 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-07-27 15:25:05 +0300 |
commit | 207fc1458c7f168822e454a89f23428c64163427 (patch) | |
tree | 7b3512fa6f33491682c6d96d72d4cb61de9533ab /gawkapi.c | |
parent | 0544971abd3bf6eda1531e62b4a19e221a68a6e5 (diff) | |
download | egawk-207fc1458c7f168822e454a89f23428c64163427.tar.gz egawk-207fc1458c7f168822e454a89f23428c64163427.tar.bz2 egawk-207fc1458c7f168822e454a89f23428c64163427.zip |
Fix bug in API set_RT, bug in readdir.c.
Diffstat (limited to 'gawkapi.c')
-rw-r--r-- | gawkapi.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -252,8 +252,7 @@ api_set_RT(awk_ext_id_t id, awk_value_t *value) case AWK_SCALAR: n = awk_value_to_node(value); force_string(n); - set_RT(n->stptr, n->stlen); - freenode(n); + set_RT(n); /* set_RT takes ownership of n */ } } |