From nobody Mon Dec 06 00:28:05 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 63E1B18BE8CC; Mon, 6 Dec 2021 00:28:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J6kmQ15kRz4XXF; Mon, 6 Dec 2021 00:28:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8173621E8D; Mon, 6 Dec 2021 00:28:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1B60S59C084828; Mon, 6 Dec 2021 00:28:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B60S5Gn084827; Mon, 6 Dec 2021 00:28:05 GMT (envelope-from git) Date: Mon, 6 Dec 2021 00:28:05 GMT Message-Id: <202112060028.1B60S5Gn084827@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: f19aa58ee6b9 - stable/13 - libc/stdio/vfwscanf.c::convert_wstring(): wcp0 is write-only List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: f19aa58ee6b9c085608f85918cbddf2c3977291e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638750486; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=b1hNWzJ2s3qNsw/JMe2DCbKb5pew6hfIouSmPP/Hpt0=; b=Foz9RuEM8n+jon1D5mRq79cpgo+e3/dlbkcJDlk4/UygpgVB48FXMiYrwG86OTY5Y9RmgD VjDaU7awXf2SszRk1DZMVzP63OY09T0v25VY0AtJpPurJZtsKmFaZj5+snI/Enhp/9Xfem OA0eearMGUqK9JZU9nhwqOoKOQlOGuCcoaDFbrn8vmPqU/9uHkFxGx9/8vyFCtykJ516OE THbSgork29jl0R6nkrPtFIG0XcmM9lIac+iNuDsbpp6pENk7+eu7K/Aq7t1+htfHql8q+r +r1H2ysjvbhG3qX9R11/gksM7q3i/nD3q5FDTYPEfIry+eh53kPoNvpC0fU8Mg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638750486; a=rsa-sha256; cv=none; b=dfA/6ozztLMesE4ASaayiASo0JcJo8QFP4ZOo/oyOzWgzkGioeLfvfJ7EussW+f5Jc1c5J jZkey3QRWgTk1OpP8zbIMpR4jotcjmZpFfovdFrT3h29zR1cNXoFSosh45HSt3Lwm1Usa9 EgjFPSIBuuZF6kFUltnPlU/m38FoTXYSyLgiiz3M4gXimG2Lywbacpsi2gkWYJOxKAXMtw G4hXSnN0Rves0E05DBNocBcpZ1YQq/vcjnX73WgHwsXtg9SJs5JMAYw2fhCiMPZC5cf8Yv pivaK4LSrYISBo2Fkr5qVC/rHKz2dDpJDhsJKWzO76Qov9PlTUg6W9+PLkyvVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=f19aa58ee6b9c085608f85918cbddf2c3977291e commit f19aa58ee6b9c085608f85918cbddf2c3977291e Author: Konstantin Belousov AuthorDate: 2021-11-28 03:16:08 +0000 Commit: Konstantin Belousov CommitDate: 2021-12-06 00:23:45 +0000 libc/stdio/vfwscanf.c::convert_wstring(): wcp0 is write-only (cherry picked from commit c8a4a49d582f539c73ef436ceb9d623dd9f20221) --- lib/libc/stdio/vfwscanf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/libc/stdio/vfwscanf.c b/lib/libc/stdio/vfwscanf.c index fbd3a8ad747a..34488912171a 100644 --- a/lib/libc/stdio/vfwscanf.c +++ b/lib/libc/stdio/vfwscanf.c @@ -268,7 +268,6 @@ convert_string(FILE *fp, char * mbp, int width, locale_t locale) static __inline int convert_wstring(FILE *fp, wchar_t *wcp, int width, locale_t locale) { - wchar_t *wcp0; wint_t wi; int nread; @@ -280,7 +279,6 @@ convert_wstring(FILE *fp, wchar_t *wcp, int width, locale_t locale) if (wi != WEOF) __ungetwc(wi, fp, locale); } else { - wcp0 = wcp; while ((wi = __fgetwc(fp, locale)) != WEOF && width-- != 0 && !iswspace(wi)) { *wcp++ = (wchar_t)wi;