From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=IFoIo9dc; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTPS id 0BE435A0274 for ; Thu, 09 Jul 2026 00:32:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783549937; 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: in-reply-to:in-reply-to:references:references; bh=IO332sYG5rzKZFs7VJxjiIdVQzqKlAgwqC6+diqyYvU=; b=IFoIo9dc94rbBn3WyNF5E+rfYu38eWd6jfgBw9Qt11gtkc6aQf9DpUH63kKU4nvAtQXbO9 Tr0OrdVAgtoGOBDUyuzXB1rTF/+I8yoA/xCwMxdwu591kMWd12p8IV4FVWkZEpJfi2v5tD gAo3+huXkKo5GwHDkzmRhQrKcsST3P4= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-678-I2RypWL3NUuxKh1_f8z9Xw-1; Wed, 08 Jul 2026 18:32:14 -0400 X-MC-Unique: I2RypWL3NUuxKh1_f8z9Xw-1 X-Mimecast-MFC-AGG-ID: I2RypWL3NUuxKh1_f8z9Xw_1783549933 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3E3FF18002C2; Wed, 8 Jul 2026 22:32:13 +0000 (UTC) Received: from jmaloy-thinkpadp16vgen1.rmtcaqc.csb (unknown [10.22.88.44]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id EF8B61955F75; Wed, 8 Jul 2026 22:32:11 +0000 (UTC) From: Jon Maloy To: sbrivio@redhat.com, david@gibson.dropbear.id.au, jmaloy@redhat.com, passt-dev@passt.top Subject: [PATCH 6/7] doc/platform-requirements: Initialise va_list before va_start() Date: Wed, 8 Jul 2026 18:32:02 -0400 Message-ID: <20260708223203.885345-7-jmaloy@redhat.com> In-Reply-To: <20260708223203.885345-1-jmaloy@redhat.com> References: <20260708223203.885345-1-jmaloy@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: TtQVYiTZMSGQGVhBPn9Pvy-BX1D4QAvQ_Qf8ZgU8lT4_1783549933 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true Message-ID-Hash: BPWBJF4P5RXGJCKIYTDFHQRWCLC2JFGQ X-Message-ID-Hash: BPWBJF4P5RXGJCKIYTDFHQRWCLC2JFGQ X-MailFrom: jmaloy@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: va_start() initialises the va_list, but zero-initialise it at declaration as well to make it clear the variable is not used uninitialised. Signed-off-by: Jon Maloy --- doc/platform-requirements/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/platform-requirements/common.h b/doc/platform-requirements/common.h index e85fc2b5..815e8271 100644 --- a/doc/platform-requirements/common.h +++ b/doc/platform-requirements/common.h @@ -18,7 +18,7 @@ __attribute__((format(printf, 1, 2), noreturn)) static inline void die(const char *fmt, ...) { - va_list ap; + va_list ap = { 0 }; va_start(ap, fmt); (void)vfprintf(stderr, fmt, ap); -- 2.52.0