virtfs-proxy-helper: add missing long option terminator
commitbf6667d63ef4c4fbaf91051589a594ec1c235308
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 30 Mar 2015 13:57:15 +0000 (30 14:57 +0100)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 16 Jun 2015 15:02:29 +0000 (16 20:32 +0530)
tree04be360e93addfa8001bcca5bfdf04cfafe11ba7
parent93f6d1c16036aaf34055d16f54ea770fb8d6d280
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>
fsdev/virtfs-proxy-helper.c