diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-04-13 11:40:24 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-04-13 11:40:24 +0300 |
commit | 3e6d7cb2ac0e05aaca43b923cc9e2b408f390d01 (patch) | |
tree | e3d9d87bb0287a5eb87550987360a0b9e8188842 /awk.h | |
parent | cb6411df195fc515dd5062a8c368e3422594a71f (diff) | |
download | egawk-3e6d7cb2ac0e05aaca43b923cc9e2b408f390d01.tar.gz egawk-3e6d7cb2ac0e05aaca43b923cc9e2b408f390d01.tar.bz2 egawk-3e6d7cb2ac0e05aaca43b923cc9e2b408f390d01.zip |
Make MPFR division by zero fatal in intdiv.c. Some other cleanups.
Diffstat (limited to 'awk.h')
-rw-r--r-- | awk.h | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -1976,20 +1976,17 @@ erealloc_real(void *ptr, size_t count, const char *where, const char *var, const return ret; } -/* make_number_node --- make node with the give flags */ +/* make_number_node --- make node with the given flags */ static inline NODE * -make_number_node(unsigned int tp) +make_number_node(unsigned int flags) { NODE *r; getnode(r); + memset(r, 0, sizeof(*r)); r->type = Node_val; r->valref = 1; - r->flags = (tp|MALLOC|NUMBER|NUMCUR); - r->stptr = NULL; - r->stlen = 0; - r->wstptr = NULL; - r->wstlen = 0; + r->flags = (flags|MALLOC|NUMBER|NUMCUR); return r; } |