From 949ea4801dfa3c72ee34b645ebc09062335eebc0 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 13 Jan 2011 17:26:05 +0100 Subject: fix a SEGV caused by returning NULL instead of empty hash table Signed-off-by: Denys Vlasenko --- src/daemon/MiddleWare.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/daemon') diff --git a/src/daemon/MiddleWare.cpp b/src/daemon/MiddleWare.cpp index ff2e1a2a..1379e4fb 100644 --- a/src/daemon/MiddleWare.cpp +++ b/src/daemon/MiddleWare.cpp @@ -173,6 +173,8 @@ static mw_result_t CreateCrashReport(const char *dump_dir_name, } ret: + if (*crash_data == NULL) + *crash_data = new_crash_data(); VERB3 log("CreateCrashReport() returns %d", r); return r; } -- cgit