diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-01-13 17:26:05 +0100 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-01-13 17:26:05 +0100 |
commit | 949ea4801dfa3c72ee34b645ebc09062335eebc0 (patch) | |
tree | 2ac48d20531131fc2f1059bdf046ba78ab50d415 /src | |
parent | ec3b070b67438b8aa14557bac490650ac27306b0 (diff) | |
download | abrt-949ea4801dfa3c72ee34b645ebc09062335eebc0.tar.gz abrt-949ea4801dfa3c72ee34b645ebc09062335eebc0.tar.xz abrt-949ea4801dfa3c72ee34b645ebc09062335eebc0.zip |
fix a SEGV caused by returning NULL instead of empty hash table
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/daemon/MiddleWare.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |