diff options
author | Christopher Faylor <me@cgf.cx> | 2002-01-18 05:57:10 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-01-18 05:57:10 +0300 |
commit | e47cd9cd5f353865d8704cbea5b64281e421982b (patch) | |
tree | ad47a002d5b715be0a740448cbc3a349fcfa9b9d /winsup/utils | |
parent | ebf139fbb8948067ecc70431516e53f0a5d2b7e5 (diff) |
* cygcheck.cc (already_did): Avoid default constructors, which may require
exception support.
Diffstat (limited to 'winsup/utils')
-rw-r--r-- | winsup/utils/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/utils/cygcheck.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 180f21ef0..4dc21dcd6 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,8 @@ +2002-01-17 DJ Delorie <dj@redhat.com> + + * cygcheck.cc (already_did): Avoid default constructors, which may + require exception support. + 2001-01-16 Joshua Daniel Franklin <joshuadfranklin@yahoo.com> * cygpath.cc (main): Add options to show Desktop and Start diff --git a/winsup/utils/cygcheck.cc b/winsup/utils/cygcheck.cc index ce9ad5313..a229085e8 100644 --- a/winsup/utils/cygcheck.cc +++ b/winsup/utils/cygcheck.cc @@ -226,7 +226,7 @@ already_did (char *file) for (d = did; d; d = d->next) if (strcasecmp (d->file, file) == 0) return d; - d = new Did; + d = (Did *) malloc (sizeof (Did)); d->file = strdup (file); d->next = did; d->state = DID_NEW; |