summaryrefslogtreecommitdiffstats
path: root/src/daemon
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-04-18 22:41:41 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2011-04-18 22:41:41 +0200
commit20825945e91651cccb080ee94286a33cd82d3ee4 (patch)
tree2f4a1cf6f49e98cb48701999e694c462871eeb37 /src/daemon
parentf5ba5aab2ad2cbf3b7f3b27e2a9aec3e086dc0f3 (diff)
downloadabrt-20825945e91651cccb080ee94286a33cd82d3ee4.zip
abrt-20825945e91651cccb080ee94286a33cd82d3ee4.tar.gz
abrt-20825945e91651cccb080ee94286a33cd82d3ee4.tar.xz
abrt-hook-ccpp: add saving of environ, disable saving of smaps. closes #91
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/abrt-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/abrt-server.c b/src/daemon/abrt-server.c
index c9da64d..4626d5d 100644
--- a/src/daemon/abrt-server.c
+++ b/src/daemon/abrt-server.c
@@ -126,8 +126,8 @@ static void create_debug_dump()
dd_save_text(dd, FILENAME_REASON, reason);
/* Obtain and save the command line. */
- char *cmdline = get_cmdline(pid); // never NULL
- dd_save_text(dd, FILENAME_CMDLINE, cmdline);
+ char *cmdline = get_cmdline(pid);
+ dd_save_text(dd, FILENAME_CMDLINE, cmdline ? : "");
free(cmdline);
/* Store id of the user whose application crashed. */