Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] gdbsupport: Fix a type of sentinel
@ 2020-01-28 14:28 Lukas Durfina
  2020-01-28 15:05 ` [PATCH 2/2] gdb: " Lukas Durfina
  2020-01-28 16:44 ` [PATCH 1/2] gdbsupport: " Simon Marchi
  0 siblings, 2 replies; 8+ messages in thread
From: Lukas Durfina @ 2020-01-28 14:28 UTC (permalink / raw)
  To: gdb-patches

---
 gdbsupport/ChangeLog | 4 ++++
 gdbsupport/environ.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdbsupport/ChangeLog b/gdbsupport/ChangeLog
index 6ea2f2c253..3c77483294 100644
--- a/gdbsupport/ChangeLog
+++ b/gdbsupport/ChangeLog
@@ -1,3 +1,7 @@
+2020-01-28 Lukas Durfina <ldurfina@tachyum.com>
+
+	* environ.c (gdb_environ::set): Fix a type of sentinel.
+
 2020-01-24  Christian Biesinger  <cbiesinger@google.com>
 
 	* thread-pool.c (set_thread_name): Add an overload for the NetBSD
diff --git a/gdbsupport/environ.c b/gdbsupport/environ.c
index 55d0a74c37..32434ee0b7 100644
--- a/gdbsupport/environ.c
+++ b/gdbsupport/environ.c
@@ -105,7 +105,7 @@ gdb_environ::get (const char *var) const
 void
 gdb_environ::set (const char *var, const char *value)
 {
-  char *fullvar = concat (var, "=", value, NULL);
+  char *fullvar = concat (var, "=", value, (char *) NULL);
 
   /* We have to unset the variable in the vector if it exists.  */
   unset (var, false);
-- 
2.17.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-01-31 16:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-28 14:28 [PATCH 1/2] gdbsupport: Fix a type of sentinel Lukas Durfina
2020-01-28 15:05 ` [PATCH 2/2] gdb: " Lukas Durfina
2020-01-28 16:53   ` Simon Marchi
2020-01-28 17:13     ` Aktemur, Tankut Baris
2020-01-30 14:52       ` Lukas Durfina
2020-01-28 16:44 ` [PATCH 1/2] gdbsupport: " Simon Marchi
2020-01-31 10:09   ` Tom Tromey
2020-01-31 18:37     ` Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox