[thin_delta] long opts weren't being terminated properly.

This caused a seg fault with an unknown switch
This commit is contained in:
Joe Thornber 2017-09-15 12:28:19 +01:00
parent 738ab8391d
commit a424417475

View File

@ -662,7 +662,8 @@ thin_delta_cmd::run(int argc, char **argv)
{ "thin2", required_argument, NULL, 2 },
{ "snap2", required_argument, NULL, 2 },
{ "metadata-snap", optional_argument, NULL, 'm' },
{ "verbose", no_argument, NULL, 4 }
{ "verbose", no_argument, NULL, 4 },
{ NULL, no_argument, NULL, 0 }
};
while ((c = getopt_long(argc, argv, shortopts, longopts, NULL)) != -1) {