From nobody Sun Feb 8 12:52:16 2026 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 ARC-Seal: i=1; a=rsa-sha256; t=1697012796; cv=none; d=zohomail.com; s=zohoarc; b=CfZ/Vqf7V3ARmygLZKh7vmCQ/0axis2eEJOs1XnpoFR9/gsw6DTv9zWid0+GnaKXQiD0DtX7D7v/m5qlh/SrKIWVaJgXrm5BVewa2n03X7++l6DDI7TeSOEEDa6vQ+LRgksawrai4j7BCJRGWAKQPxOFbuq6bC7L0mLghP4i+8Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1697012796; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=qHh4Us9U8NbO3316L1w2s44LNsIJM7+I71/Ooi/M5sU=; b=Xo5zNn5JNNaSBHG5o+gPnZt1XSlX377qeQT5x6CWzo5zS4z6tKG5N0B6boyKg93UKiEXM7WgvbQbb8QPWzrB7gPCYyrTWyCuTuBr0UkTJzqcQAb4UQOcB1SnAGr/qgYkjZYXJxpX6rKzrcPt5OQv4Ri6k8pCbTIXYpeDFeHZ7eE= 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 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 1697012796207540.7546305433873; Wed, 11 Oct 2023 01:26:36 -0700 (PDT) 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-267-YEiv1AP6NRybrcSNp1OK4g-1; Wed, 11 Oct 2023 04:26:27 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9CDCC8F5DB0; Wed, 11 Oct 2023 08:26:25 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0075363F67; Wed, 11 Oct 2023 08:26:25 +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 8DA4219465B8; Wed, 11 Oct 2023 08:26:24 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 132421946597 for ; Wed, 11 Oct 2023 08:20:06 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id D80E0111CD24; Wed, 11 Oct 2023 08:20:05 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast09.extmail.prod.ext.rdu2.redhat.com [10.11.55.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D094A111CD23 for ; Wed, 11 Oct 2023 08:20:05 +0000 (UTC) Received: from us-smtp-inbound-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B3D9F28EC118 for ; Wed, 11 Oct 2023 08:20:05 +0000 (UTC) Received: from exchange.fintech.ru (exchange.fintech.ru [195.54.195.159]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_DHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-652-JxW3gVsmOFi6buEScG3o3A-2; Wed, 11 Oct 2023 04:19:53 -0400 Received: from Ex16-02.fintech.ru (10.0.10.19) by exchange.fintech.ru (195.54.195.169) with Microsoft SMTP Server (TLS) id 14.3.498.0; Wed, 11 Oct 2023 11:19:25 +0300 Received: from infra.fintech.ru (10.10.1.240) by Ex16-02.fintech.ru (10.0.10.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Wed, 11 Oct 2023 11:19:20 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697012795; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=qHh4Us9U8NbO3316L1w2s44LNsIJM7+I71/Ooi/M5sU=; b=Ml4EXQeNVoADOYj8BduNI0jNijp9xXh5rINPWhnFxIIw5HG66PMugx/Rkv0+jX44tdLnuZ wnRsrAPwbN8JpiRNVkrzk++yevy+IywLD8vZ2kJ7abbH5dUY1N1FVD0ULOGGANL8V+/7dy 7VvbmD4SjDU9HvYIx9JpnPL1O0nv71M= X-MC-Unique: YEiv1AP6NRybrcSNp1OK4g-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: JxW3gVsmOFi6buEScG3o3A-2 From: Sergey Mironov To: Subject: [PATCHv2 1/1] Changes from [v1]: Date: Wed, 11 Oct 2023 11:19:08 +0300 Message-ID: <20231011081908.4098611-2-mironov@fintech.ru> In-Reply-To: <20231011081908.4098611-1-mironov@fintech.ru> References: <20231011081908.4098611-1-mironov@fintech.ru> MIME-Version: 1.0 X-Originating-IP: [10.10.1.240] X-ClientProxiedBy: Ex16-02.fintech.ru (10.0.10.19) To Ex16-02.fintech.ru (10.0.10.19) X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 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: , Cc: Sergey Mironov Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: fintech.ru Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1697012798563100001 Content-Type: text/plain; charset="utf-8" - now checked devAlias and making the code more robust in case when qemu st= op sending a devAlias [v1] https://listman.redhat.com/archives/libvir-list/2023-October/242544.ht= ml Signed-off-by: Sergey Mironov Reviewed-by: Peter Krempa --- v2: devAlias pointer was checked --- src/qemu/qemu_monitor_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c index 5b9edadcf7..e37faff683 100644 --- a/src/qemu/qemu_monitor_json.c +++ b/src/qemu/qemu_monitor_json.c @@ -934,7 +934,7 @@ qemuMonitorJSONHandleTrayChange(qemuMonitor *mon, int reason; =20 /* drive alias is always reported but empty for -blockdev */ - if (*devAlias =3D=3D '\0') + if (devAlias && *devAlias =3D=3D '\0') devAlias =3D NULL; =20 if (!devAlias && !devid) { --=20 2.31.1