summaryrefslogtreecommitdiffstats
path: root/fsdev
diff options
context:
space:
mode:
authorStefan Hajnoczi2015-03-30 15:57:15 +0200
committerAneesh Kumar K.V2015-06-16 17:02:29 +0200
commitbf6667d63ef4c4fbaf91051589a594ec1c235308 (patch)
tree04be360e93addfa8001bcca5bfdf04cfafe11ba7 /fsdev
parentMerge remote-tracking branch 'remotes/kraxel/tags/pull-vga-20150615-1' into s... (diff)
downloadqemu-bf6667d63ef4c4fbaf91051589a594ec1c235308.tar.gz
qemu-bf6667d63ef4c4fbaf91051589a594ec1c235308.tar.xz
qemu-bf6667d63ef4c4fbaf91051589a594ec1c235308.zip
virtfs-proxy-helper: add missing long option terminator
The getopt_long(3) long options array must have a zeroed terminator. This patch solves a segmentation fault when an unknown command-line option is encountered: $ fsdev/virtfs-proxy-helper --help Segmentation fault (core dumped) Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'fsdev')
-rw-r--r--fsdev/virtfs-proxy-helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c
index a698e2dbb3..91e8b9b7f1 100644
--- a/fsdev/virtfs-proxy-helper.c
+++ b/fsdev/virtfs-proxy-helper.c
@@ -49,6 +49,7 @@ static struct option helper_opts[] = {
{"socket", required_argument, NULL, 's'},
{"uid", required_argument, NULL, 'u'},
{"gid", required_argument, NULL, 'g'},
+ {},
};
static bool is_daemon;