[gjs] console: fix dangling pointer
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] console: fix dangling pointer
- Date: Sat, 1 Jun 2019 17:43:42 +0000 (UTC)
commit 398d8db20daee4d033dbfd74782328400c6775cd
Author: Christian Hergert <chergert redhat com>
Date: Fri May 24 16:09:39 2019 -0700
console: fix dangling pointer
gjs/console.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gjs/console.cpp b/gjs/console.cpp
index eec9bd38..4f876153 100644
--- a/gjs/console.cpp
+++ b/gjs/console.cpp
@@ -106,8 +106,7 @@ static gboolean parse_profile_arg(const char* option_name G_GNUC_UNUSED,
GError** error_out G_GNUC_UNUSED) {
enable_profiler = true;
g_free(profile_output_path);
- if (value)
- profile_output_path = g_strdup(value);
+ profile_output_path = g_strdup(value);
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]