qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 12/19] cutils: Allow NULL str in qemu_strtosz


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 12/19] cutils: Allow NULL str in qemu_strtosz
Date: Fri, 12 May 2023 05:25:07 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.1

On 12/5/23 04:10, Eric Blake wrote:
All the other qemu_strto* and parse_uint allow a NULL str.  Having
qemu_strtosz crash on qemu_strtosz(NULL, NULL, &value) is an easy fix
that adds some consistency between our string parsers.

Signed-off-by: Eric Blake <eblake@redhat.com>
---
  tests/unit/test-cutils.c | 3 +++
  util/cutils.c            | 2 +-
  2 files changed, 4 insertions(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]