diff options
Diffstat (limited to 'meta-egvirt/recipes-qemu/qemu-vhost-user-devices/qemu-vhost-user-devices/0001-Add-NULL-array-terminate-entry-for-arg-parsing-optio.patch')
-rw-r--r-- | meta-egvirt/recipes-qemu/qemu-vhost-user-devices/qemu-vhost-user-devices/0001-Add-NULL-array-terminate-entry-for-arg-parsing-optio.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta-egvirt/recipes-qemu/qemu-vhost-user-devices/qemu-vhost-user-devices/0001-Add-NULL-array-terminate-entry-for-arg-parsing-optio.patch b/meta-egvirt/recipes-qemu/qemu-vhost-user-devices/qemu-vhost-user-devices/0001-Add-NULL-array-terminate-entry-for-arg-parsing-optio.patch new file mode 100644 index 00000000..a7af1b68 --- /dev/null +++ b/meta-egvirt/recipes-qemu/qemu-vhost-user-devices/qemu-vhost-user-devices/0001-Add-NULL-array-terminate-entry-for-arg-parsing-optio.patch @@ -0,0 +1,23 @@ +From 729065c67520aed4ded15092fd394e2841dc2e0c Mon Sep 17 00:00:00 2001 +From: Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> +Date: Thu, 1 Dec 2022 22:07:07 +0100 +Subject: [PATCH] Add NULL array-terminate entry for arg-parsing options + +--- + contrib/vhost-user-blk/vhost-user-blk.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/contrib/vhost-user-blk/vhost-user-blk.c b/contrib/vhost-user-blk/vhost-user-blk.c +index 725583ec4d..f8833e52d1 100644 +--- a/contrib/vhost-user-blk/vhost-user-blk.c ++++ b/contrib/vhost-user-blk/vhost-user-blk.c +@@ -627,7 +627,8 @@ static GOptionEntry entries[] = { + {"blk-file", 'b', 0, G_OPTION_ARG_FILENAME, &opt_blk_file, + "block device or file path", "PATH"}, + { "read-only", 'r', 0, G_OPTION_ARG_NONE, &opt_read_only, +- "Enable read-only", NULL } ++ "Enable read-only", NULL }, ++ { NULL }, + }; + + int main(int argc, char **argv) |