From nobody Thu Feb 1 13:11:10 2024 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 4TQfRf5fJcz58ccF; Thu, 1 Feb 2024 13:11:10 +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 4TQfRf3YT8z4WZN; Thu, 1 Feb 2024 13:11:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706793070; 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=+KEsv+AgYsqIORBuJWEWV+ncm69XUnhpkhZHQGuhxas=; b=ICpcASGN8f3vALL8VOu3nCmEGsAbev3MdUppKn5WbriJ/FhQ+38YWIZSjo+IfJ9FtaFSI2 UhqD3rtQ/tAz8lCFlpB5jP2GIm6GQCTFNtEnxTI5yca/NlnLWMwCtr/m4Y4eBW+MFUd4qG cqjvwIkPsqQd5YyHsWLzG/XoDIZbeUt78dcJ4mLJqs1YZc7YExhBye23wByHug998Jc6If If88cQOBvGo+xSDtgUct9TihVhkLOi6iyP0F7d3Q/PjgoifhPFS0A1oDJ5mE2r3htIQ6vM ojBmIBKVzA1P//s3Ggr0sdZ2UnBJEv2TmDDjVorGulhueG7h0EcM/VTPystG2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706793070; 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=+KEsv+AgYsqIORBuJWEWV+ncm69XUnhpkhZHQGuhxas=; b=BIDAspv60S9gFhy9atyYnGC64J2zcYXjQzsJa447oxx8PIDa3j3G4tUZAY4oIGfHijauCV b4lb5xDq0nZ01yEWmd6CtRLvMUmNz00A1t/CyyOVcsf8fdMEaqfr9fccFRlUTnFuo4iy+P yGA+Era1jL0BKUnj61Uos9qSe1hLHhFYh0fq4mv+YY0+80CDO6LhNfW+zTiGHf0JFD9OM8 y4jqT7rnVSeS6618SzBvxNgCmwejdBohh97Y5vVYqEUgoeql9QBzJSsjPLvy+Dnle6OslQ aVmAV7pyE0/V89Gmu/uzyQXZyGNx5SModuqdIJVxsyQ9U/spdgga6GYP7XP5CA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706793070; a=rsa-sha256; cv=none; b=ZwkoIUioz+B2NXoJmUU4QstgnCtM9beYr9Ll5KBWPUYSe2tUlpaMBrTXajjiFbVXN8U1aF BCpmOFFnG7UPcupJQvlVwEmFkn7i0JhxfNGhkyeCdH65wrDPL+MWI8lzBynlPhf+qhpR7s 4FEW6YPdII7ux/fHDpHkgx6b3D1xxB4dvlUyK/6Wkd+UJ1D3/btTgxToNki0Jt9oZnMosx YPUL/FpywBRmEVRLPtFq89qZ2vW7WVb6rVwPKClYhjETtYWChhm2DYGK/RStTLq5zrU9wi TO2hZOCt9ZPD2QHKCJ5XzqK9kyYtiJw39GbwApBESxfJZF0YSu4VV6Qvcv47jA== 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 4TQfRf2dSyz12xr; Thu, 1 Feb 2024 13:11:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 411DBA3l039255; Thu, 1 Feb 2024 13:11:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 411DBAIR039252; Thu, 1 Feb 2024 13:11:10 GMT (envelope-from git) Date: Thu, 1 Feb 2024 13:11:10 GMT Message-Id: <202402011311.411DBAIR039252@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: bce34cba07bc - main - bintrans: Fix uninitialized variable. 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: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bce34cba07bcfed9cd519a658e594c9910c8f210 Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=bce34cba07bcfed9cd519a658e594c9910c8f210 commit bce34cba07bcfed9cd519a658e594c9910c8f210 Author: Dag-Erling Smørgrav AuthorDate: 2024-02-01 13:10:37 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2024-02-01 13:10:37 +0000 bintrans: Fix uninitialized variable. `prev` may be used uninitialized if `body` starts with a newline. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: bapt, emaste Differential Revision: https://reviews.freebsd.org/D43534 --- usr.bin/bintrans/qp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/bintrans/qp.c b/usr.bin/bintrans/qp.c index 74fa1ec3ae90..33aabb35a101 100644 --- a/usr.bin/bintrans/qp.c +++ b/usr.bin/bintrans/qp.c @@ -90,9 +90,9 @@ decode_quoted_printable(const char *body, FILE *fpo) static void encode_quoted_printable(const char *body, FILE *fpo) { - char prev; const char *end = body + strlen(body); size_t linelen = 0; + char prev = '\0'; while (*body != '\0') { if (linelen == 75) {