From nobody Sun Feb 8 19:56:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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.133.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=1646229428; cv=none; d=zohomail.com; s=zohoarc; b=aokLCzzd3XlVrX3vS2WVxWkdypeImug/Xskk51b0LTQRJXoACy8GLt/ounVmNzgnhwOlYSO8yksnMI3sX4u1o407rezydOrLm1pSzA20AQ8Zl1eug4g/lvx3UQZ9xB/iFnHmF6VxxjCLrLwo4w1DrlVUdvQrmTl7bmf5TtyWM7A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1646229428; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=qqyjECTADDVTz8Pay/CCKEy16FlJy0LtdRENZYix59E=; b=fUg7S9BIXOCm/U/xFzrH+fetcrXpn6KNR8qQa0VLuv3ZH54YknCbfJAsDR0jlsI5RUAjD3acUcGZVfBPanOni60aL+uxOnjMY+lTQcDiPqpBd02HPB/uo9xAvbYJKtws+8ChhtL7FXC0Mc7weg4GcwKYVUyDjqwLqiiVo9CaMes= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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.133.124]) by mx.zohomail.com with SMTPS id 164622942885034.79798326663399; Wed, 2 Mar 2022 05:57:08 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-661-FIh4VdqLPn2k8EkOy0gnPQ-1; Wed, 02 Mar 2022 08:56:08 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EB489824FAC; Wed, 2 Mar 2022 13:56:03 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C569D26E4B; Wed, 2 Mar 2022 13:56:03 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 954CF44A5E; Wed, 2 Mar 2022 13:56:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 222Dtcx3017439 for ; Wed, 2 Mar 2022 08:55:38 -0500 Received: by smtp.corp.redhat.com (Postfix) id 8370A832B4; Wed, 2 Mar 2022 13:55:38 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id DA87A17B7D for ; Wed, 2 Mar 2022 13:55:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646229427; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=qqyjECTADDVTz8Pay/CCKEy16FlJy0LtdRENZYix59E=; b=YXalH/kP5BTt8DVOEinq/3NGfS+P9+i7GnSIVcu5j7UlvFSV7QTrlJomVTqPibtIo7kO71 Uo7HLFnAv9n0PuA5ZXwk0QKGqlnqJxMKJvZPU9GOZRWr9XN7xlzsn6VKevVZUsHReZSjMQ K2XyOL9Sm3mLZUHWUDiB4HPnNRb0yWo= X-MC-Unique: FIh4VdqLPn2k8EkOy0gnPQ-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 06/23] virsh: Use NULLSTR_EMPTY instead of ternary operator Date: Wed, 2 Mar 2022 14:55:05 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com 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: 1646229429634100009 Content-Type: text/plain; charset="utf-8" Signed-off-by: Peter Krempa --- tools/virsh-domain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 73f05ce7f9..25097627ac 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -7601,7 +7601,7 @@ cmdIOThreadInfo(vshControl *ctl, const vshCmd *cmd) ignore_value(pinInfo =3D virBitmapDataFormat(info[i]->cpumap, info= [i]->cpumaplen)); - if (vshTableRowAppend(table, iothreadIdStr, pinInfo ? pinInfo : ""= , NULL) < 0) + if (vshTableRowAppend(table, iothreadIdStr, NULLSTR_EMPTY(pinInfo)= , NULL) < 0) goto cleanup; } @@ -14211,7 +14211,7 @@ cmdDomFSInfo(vshControl *ctl, const vshCmd *cmd) info[i]->mountpoint, info[i]->name, info[i]->fstype, - targets ? targets : "", + NULLSTR_EMPTY(targets), NULL) < 0) goto cleanup; } --=20 2.35.1