Initialize the "local" error handler to the "global" error handler, so

that errors that arise when opening an archive don't get sent to the
uninitialized local handler.
This commit is contained in:
Andy McFadden 2003-03-09 03:35:24 +00:00
parent 38dafdc774
commit 4c24cb0c9f
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ Nu_NuArchiveNew(NuArchive** ppArchive)
(*ppArchive)->valMimicSHK = false;
(*ppArchive)->valMaskDataless = false;
(*ppArchive)->messageHandlerFunc = gNuGlobalErrorMessageHandler;
return kNuErrNone;
}