diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-05 05:15:09 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-05 05:15:09 +0000 |
commit | 89de664f6d3fe05005185190aa6a876c4681f177 (patch) | |
tree | 7a93de3cd2c1dddc6abadf6027ce2065f87d9540 /gcc/cpphash.c | |
parent | ae0b8c3413f4062c7ca37b0289ec2d53cd86b044 (diff) | |
download | ppe42-gcc-89de664f6d3fe05005185190aa6a876c4681f177.tar.gz ppe42-gcc-89de664f6d3fe05005185190aa6a876c4681f177.zip |
2000-04-04 Philippe De Muyter <phdm@macqel.be>
* cpphash.c (_cpp_free_definition): Test argnames, not nargs >= 0,
before freeing argnames.
* cpplib.c (do_ifndef): Cast return value of xstrdup.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32924 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpphash.c')
-rw-r--r-- | gcc/cpphash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cpphash.c b/gcc/cpphash.c index 0eadc9a4c94..ac8fbcb27b4 100644 --- a/gcc/cpphash.c +++ b/gcc/cpphash.c @@ -256,7 +256,7 @@ _cpp_free_definition (d) nextap = ap->next; free (ap); } - if (d->nargs >= 0) + if (d->argnames) free (d->argnames); free (d); } |