From nobody Sat May 18 19:24:25 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1674750137; cv=none; d=zohomail.com; s=zohoarc; b=I54Dx/cEDkudvZ+O5mdgprbbMcUCKFWjEWObngoYXaYLJP/uq5kbK3aTOX97rPYMWoFwMWe4JTiAJU3Y3MVi147meFgmAp7Ovs9/qznAG+qA7UwnBvgASAG76KyEWDVKgqJPlT7hSb1oZXTeky3OkiILIbLMYDL6TKpsxYtSf5Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674750137; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=ifHMX9QfhxM9Hc0RNpfJW32TTUIH4dckX+N2PQhDS9k=; b=YXBg4RPt1jybVzSD+fuZzcTZsSg4FJwbbeqo8Nb3lYDqSrKWuCt0bm37W9O4RubIOTPIMfxWFpztCTFvpBZq06iGMklT06DVXqBfYcWwH4cRWhcMIoHKmIubGjjVm3lp56wFlrloV3SUuc05JhhlJacRryG6Mzk3MKOjQjHo2N8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1674750137064620.176359800706; Thu, 26 Jan 2023 08:22:17 -0800 (PST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-147-EmOpvazcOk22-k0T2zSCCw-1; Thu, 26 Jan 2023 11:22:13 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3E092802C1C; Thu, 26 Jan 2023 16:22:08 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id B1E5D2026D76; Thu, 26 Jan 2023 16:22:06 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 9E2C0194658D; Thu, 26 Jan 2023 16:22:06 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id A8C45194658C for ; Thu, 26 Jan 2023 16:22:05 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 7D3D9C15BAD; Thu, 26 Jan 2023 16:22:05 +0000 (UTC) Received: from maggie.redhat.com (unknown [10.43.2.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 246C5C15BA0 for ; Thu, 26 Jan 2023 16:22:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674750136; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=ifHMX9QfhxM9Hc0RNpfJW32TTUIH4dckX+N2PQhDS9k=; b=BNSrVzWoFGIOiwzVCotdX/cB61kvgi0lbO964fEee/KEXP4WNGBnuxnVlm5N2q5vpUxKH1 wjbCqWvbXVxhe6+D62bD3G/sCAP2iywAQsi81dnDFjxL9roTSuApxxpPCjjQMM5CUAFGhH wqmzbp52SAp4vTuV+LBsfjcD779KpME= X-MC-Unique: EmOpvazcOk22-k0T2zSCCw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH] rpc: Use struct zero initializer for args Date: Thu, 26 Jan 2023 17:22:03 +0100 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1674750138226100001 Content-Type: text/plain; charset="utf-8"; x-default="true" In a recent commit of v9.0.0-104-g0211e430a8 I've turned all args vars in src/remote/remote_driver.c to be initialized wit {0}. What I've missed was the generated code. Do what we've done in v9.0.0-13-g1c656836e3 and init also args, not just ret. Signed-off-by: Michal Privoznik Reviewed-by: Daniel P. Berrang=C3=A9 --- src/rpc/gendispatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/gendispatch.pl b/src/rpc/gendispatch.pl index e9dc8e27d7..085e2a29d8 100755 --- a/src/rpc/gendispatch.pl +++ b/src/rpc/gendispatch.pl @@ -1330,7 +1330,7 @@ elsif ($mode eq "client") { if ($argtype eq "void") { $call_args =3D "NULL"; } else { - push(@vars_list, "$argtype args"); + push(@vars_list, "$argtype args =3D {0}"); =20 my $is_first_arg =3D 1; my $has_node_device =3D 0; --=20 2.39.1