|
| From: | Hanna Czenczek |
| Subject: | Re: [PATCH v2 12/19] cutils: Allow NULL str in qemu_strtosz |
| Date: | Fri, 19 May 2023 17:15:02 +0200 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 |
On 12.05.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: Hanna Czenczek <hreitz@redhat.com>
| [Prev in Thread] | Current Thread | [Next in Thread] |