From nobody Tue Jul 09 18:45:16 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 4WJVKm2ryTz5Qssg; Tue, 09 Jul 2024 18:45:16 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WJVKm22Ftz4klM; Tue, 9 Jul 2024 18:45:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720550716; 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=nv8RjBoKswA7henunAwXOK54s0op8Vxa98USsDESIAc=; b=Mb1JEobjryCRmK8iG5j/yAUBJli+wRMOJt0dJffaV9shDYiCF2luQJLCeAFmn2KO0v0l/3 XgNfQYTFRWdD8uRU5MQ5TtpwdRG1zlo2up/uNsYz6TujHbTKeXCt7f5x/xj6Xg4wX7CQhh ys8phsmvXUE3qvIRduWSR3U8KDzICk/W81CkeeChVAvu4PpPtD4FIPZcWi92fEVZ7WZ24v pejI/WOUSjAJlkGosqnBvGXVgAUQQZbI97vX2coK0ao4zWB4mtwBd5yXyo6im+fhaDcvte wGLdwlVTRQS7lmqbXIRTH53iJ+FR9yfD1DeTQy82CcQLd+72tuGPFdIhZyefNw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720550716; a=rsa-sha256; cv=none; b=IcdJhyN7FVScAuy73Iy4ddK4FUXXLS7AgTZtq5DfEn1ZWQSMrwKrbhisbx5hx6Xf6Z1isb Kfse/vQyfYkm8pUZIwUyhyEKYO70AM+S1H43svS5cN9fwRYIgllAuMgctvZ2LUZlHHvftb +oG415xMJ1hJfw8j66APKePalo566tNtYRbu17ojkHJm5spNtAvjwNDll75xaCjaFv5Y0d VbPur4zdSQW6H3o/pKvoi5xD09GPeLIEWK8ZAxtwEqBoDxTREJJlszWYJYXzRe8o549OX/ nrr6FzLJ6cOb1xhXOrTrrSmPT6vhU+s7Vp6f8lG2yjiWpUry+WrY2QyKyi7lGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720550716; 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=nv8RjBoKswA7henunAwXOK54s0op8Vxa98USsDESIAc=; b=pvIL7YYc96xeL+xKS6ecPHeE3a0Qo1DTMvoSW5iQSAzw3zvffKRNbttTCmETHrMkdS3RxY Jq/L5zWAvSCy841XIZ2NFOLpPVcUkZDhSzJNVhUCcBsa9itTQ88wH/af5ngCZ04waOHtDA 903XAo8WDFstyJy0i1RtZcEzxCPLpljx6t8alKGKDhLoo8C9bl+45x30xVDiJNBgZemWOD PKiva6UqAOZmKUJjbnNe64DDcO1ABFP5U6ZaAbLXqtJNN1uhvNp328MtsDCd+tKffJgj9s jp+v7LafQD4Mqg4eH88je3DIbWkih8k9QFcXfGXTa1wUY43NiYaNJQ4XEvNGpg== 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 4WJVKm1Wcpzlk4; Tue, 9 Jul 2024 18:45:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 469IjG27087497; Tue, 9 Jul 2024 18:45:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 469IjG0D087494; Tue, 9 Jul 2024 18:45:16 GMT (envelope-from git) Date: Tue, 9 Jul 2024 18:45:16 GMT Message-Id: <202407091845.469IjG0D087494@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ryan Libby Subject: git: 2207aaba8977 - main - kern_exec.c: quiet gcc -Wmaybe-uninitialized 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rlibby X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2207aaba8977a91f5e076beeeba2e4a47f4f7379 Auto-Submitted: auto-generated The branch main has been updated by rlibby: URL: https://cgit.FreeBSD.org/src/commit/?id=2207aaba8977a91f5e076beeeba2e4a47f4f7379 commit 2207aaba8977a91f5e076beeeba2e4a47f4f7379 Author: Ryan Libby AuthorDate: 2024-07-09 17:57:33 +0000 Commit: Ryan Libby CommitDate: 2024-07-09 17:57:33 +0000 kern_exec.c: quiet gcc -Wmaybe-uninitialized Reported by: GCC -Wmaybe-uninitialized Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D45916 --- sys/kern/kern_exec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 6727872b5b10..63f007624e36 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1952,6 +1952,7 @@ compress_chunk(struct coredump_params *cp, char *base, char *buf, size_t len) size_t chunk_len; int error; + error = 0; while (len > 0) { chunk_len = MIN(len, CORE_BUF_SIZE); @@ -1997,6 +1998,7 @@ core_output(char *base, size_t len, off_t offset, struct coredump_params *cp, if (cp->comp != NULL) return (compress_chunk(cp, base, tmpbuf, len)); + error = 0; map = &cp->td->td_proc->p_vmspace->vm_map; for (; len > 0; base += runlen, offset += runlen, len -= runlen) { /*