summaryrefslogtreecommitdiffstats
path: root/src/daemon
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-03-07 21:49:51 +0100
committerDenys Vlasenko <dvlasenk@redhat.com>2011-03-07 21:49:51 +0100
commitef47609ab73ba222e0ef9f2da51dca4650af69d8 (patch)
tree9380193e3c4b561b1731ee3249c42e6b2660a7e5 /src/daemon
parent5b06fcaf6ebd375f939d510bbfe3933ef8ab2156 (diff)
downloadabrt-ef47609ab73ba222e0ef9f2da51dca4650af69d8.zip
abrt-ef47609ab73ba222e0ef9f2da51dca4650af69d8.tar.gz
abrt-ef47609ab73ba222e0ef9f2da51dca4650af69d8.tar.xz
gui-wizard-gtk: add code to export/unexport config variables. Untested
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/MiddleWare.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/daemon/MiddleWare.cpp b/src/daemon/MiddleWare.cpp
index 215e7b4..8d62c69 100644
--- a/src/daemon/MiddleWare.cpp
+++ b/src/daemon/MiddleWare.cpp
@@ -351,14 +351,8 @@ report_status_t Report(crash_data_t *client_report,
for (GList *li = env_list; li; li = g_list_next(li))
{
char *s = (char*)li->data;
- /* Need to make a copy: just cutting s at '=' and unsetenv'ing
- * the result would be a bug! s _itself_ is in environment now,
- * we must not modify it there!
- */
- char *name = xstrndup(s, strchrnul(s, '=') - s);
- VERB3 log("Unexporting '%s'", name);
- unsetenv(name);
- free(name);
+ VERB3 log("Unexporting '%s'", s);
+ safe_unsetenv(s);
free(s);
}
g_list_free(env_list);