From c0301b7e5f5fb2647e71991033f79e84c7d3c40a Mon Sep 17 00:00:00 2001 From: tamlin Date: Wed, 12 Feb 2003 18:47:00 +0000 Subject: [PATCH] Prevent garbage text output in log file --- src/jrd/isc_sync.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jrd/isc_sync.cpp b/src/jrd/isc_sync.cpp index 4e0494903c..46a52358c4 100644 --- a/src/jrd/isc_sync.cpp +++ b/src/jrd/isc_sync.cpp @@ -1658,7 +1658,8 @@ ULONG ISC_exception_post(ULONG except_code, TEXT * err_msg) err_msg = ""; } - TEXT *log_msg = (TEXT *) gds__alloc(strlen(err_msg) + 256); + TEXT* log_msg = (TEXT*) gds__alloc(strlen(err_msg) + 256); + log_msg[0] = '\0'; switch (except_code) { case EXCEPTION_ACCESS_VIOLATION: