8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 02:43:03 +01:00

Backport fix for CORE-898: uininitialized variables cause a crash in alice.cpp / common_main

This commit is contained in:
hvlad 2006-08-17 06:46:00 +00:00
parent 8c71164f3c
commit 9fad8f917a
2 changed files with 7 additions and 5 deletions

View File

@ -205,11 +205,6 @@ int common_main(int argc,
// first switch can be "-svc" (lower case!) or it can be "-svc_re" followed
// by 3 file descriptors to use in re-directing stdin, stdout, and stderr.
tdgbl->sw_service = false;
tdgbl->sw_service_thd = false;
tdgbl->service_blk = NULL;
tdgbl->status = tdgbl->status_vector;
if (argc > 1 && !strcmp(argv[1], "-svc")) {
tdgbl->sw_service = true;
argv++;

View File

@ -167,11 +167,18 @@ public:
ALICE_default_pool(0),
output_proc(outProc),
output_data(outData),
output_file(NULL),
service_blk(NULL),
db_handle(0),
tr_handle(0),
status(status_vector),
sw_redirect(NOREDIRECT),
sw_service(false),
sw_service_thd(false),
exit_code(FINI_ERROR) // prevent FINI_OK in case of unknown error thrown
// would be set to FINI_OK (==0) in exit_local
{
memset(&ALICE_data, 0, sizeof(user_action));
}
AliceMemoryPool* getDefaultPool()