* cygcheck.cc (already_did): Avoid default constructors, which may require

exception support.
This commit is contained in:
Christopher Faylor 2002-01-18 02:57:10 +00:00
parent ebf139fbb8
commit e47cd9cd5f
2 changed files with 6 additions and 1 deletions

View File

@ -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> 2001-01-16 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
* cygpath.cc (main): Add options to show Desktop and Start * cygpath.cc (main): Add options to show Desktop and Start

View File

@ -226,7 +226,7 @@ already_did (char *file)
for (d = did; d; d = d->next) for (d = did; d; d = d->next)
if (strcasecmp (d->file, file) == 0) if (strcasecmp (d->file, file) == 0)
return d; return d;
d = new Did; d = (Did *) malloc (sizeof (Did));
d->file = strdup (file); d->file = strdup (file);
d->next = did; d->next = did;
d->state = DID_NEW; d->state = DID_NEW;