aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hardinfo2/arch/common/environment.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hardinfo2/arch/common/environment.h b/hardinfo2/arch/common/environment.h
index c78c4a73..669be6d1 100644
--- a/hardinfo2/arch/common/environment.h
+++ b/hardinfo2/arch/common/environment.h
@@ -38,5 +38,5 @@ void scan_env_var(gboolean reload)
gchar *callback_env_var(void)
{
- return _env;
+ return g_strdup(_env);
}