From e47cd9cd5f353865d8704cbea5b64281e421982b Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 18 Jan 2002 02:57:10 +0000 Subject: [PATCH] * cygcheck.cc (already_did): Avoid default constructors, which may require exception support. --- winsup/utils/ChangeLog | 5 +++++ winsup/utils/cygcheck.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * cygcheck.cc (already_did): Avoid default constructors, which may + require exception support. + 2001-01-16 Joshua Daniel Franklin * 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;