From patchwork Tue Jan 28 14:28:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ldurfina@tachyum.com X-Patchwork-Id: 37586 Received: (qmail 125537 invoked by alias); 28 Jan 2020 14:28:48 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 125528 invoked by uid 89); 28 Jan 2020 14:28:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy=H*RU:sk:mail.ta, HX-Spam-Relays-External:sk:mail.ta, H*r:0800 X-HELO: mail.tachyum.com Received: from mail.tachyum.com (HELO mail.tachyum.com) (66.160.133.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 28 Jan 2020 14:28:47 +0000 Received: by mail.tachyum.com (Postfix, from userid 1001) id C6C3686D; Tue, 28 Jan 2020 06:28:49 -0800 (PST) Received: from THQ-IP-EX1.tachyum.com (relayhost.tachyum.com [10.7.1.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mail.tachyum.com (Postfix) with ESMTPS id 778E7220 for ; Tue, 28 Jan 2020 06:28:49 -0800 (PST) Received: from tachyum-sk-server.tachyum.com (10.7.241.13) by THQ-IP-EX1.tachyum.com (10.7.1.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1779.2; Tue, 28 Jan 2020 06:28:44 -0800 From: Lukas Durfina To: Subject: [PATCH 1/2] gdbsupport: Fix a type of sentinel Date: Tue, 28 Jan 2020 15:28:29 +0100 Message-ID: <20200128142830.89282-1-ldurfina@tachyum.com> MIME-Version: 1.0 --- 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 + + * environ.c (gdb_environ::set): Fix a type of sentinel. + 2020-01-24 Christian Biesinger * 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);