From 53bb12944ceb01f48b840ca7e6a71177422ce553 Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Sun, 23 Feb 2003 19:14:44 +0000 Subject: [PATCH] Tightened up error handling on some internal-error failures. --- nufxlib-0/Deferred.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nufxlib-0/Deferred.c b/nufxlib-0/Deferred.c index 4b3865f..2298dbc 100644 --- a/nufxlib-0/Deferred.c +++ b/nufxlib-0/Deferred.c @@ -1172,6 +1172,7 @@ Nu_ConstructArchiveRecord(NuArchive* pArchive, NuRecord* pRecord) /* verify that all threads and threadMods have been touched */ if (!Nu_VerifyAllTouched(pArchive, pRecord)) { err = kNuErrInternal; + Assert(0); goto bail; } @@ -1186,6 +1187,7 @@ Nu_ConstructArchiveRecord(NuArchive* pArchive, NuRecord* pRecord) initialOffset, finalOffset, threadDisp); err = kNuErrInternal; Assert(0); + goto bail; } /* @@ -1395,6 +1397,7 @@ Nu_ConstructNewRecord(NuArchive* pArchive, NuRecord* pRecord, FILE* fp) /* verify that all threads and threadMods have been touched */ if (!Nu_VerifyAllTouched(pArchive, pRecord)) { err = kNuErrInternal; + Assert(0); goto bail; } @@ -1409,6 +1412,7 @@ Nu_ConstructNewRecord(NuArchive* pArchive, NuRecord* pRecord, FILE* fp) initialOffset, finalOffset, threadDisp); err = kNuErrInternal; Assert(0); + goto bail; } /*