media-ctl: Fix bad long option crash
PATCH 1/1 media-ctl: Fix bad long option crash
The long options array has to be followed by an all-zero entry. There was none.
Signed-off-by Sakari Ailus <[email protected]>
--- utils/media-ctl/options.c | 1 + 1 file changed, 1 insertion(+)
utils/media-ctl/options.c +1 -0
@@ -97,6 +97,7 @@ static struct option opts[] = { {"print-topology", 0, 0, 'p'}, {"reset", 0, 0, 'r'}, {"verbose", 0, 0, 'v'}, + { }, };int parse_cmdline (int argc,char **argv)
Signature · 1 line
2.1.0.231.g7484e3b
Hi Sakari,
Thank you for the patch.
Quoted 4 lines · On Tuesday 17 November 2015 13:40:58 Sakari Ailus wrote:
The long options array has to be followed by an all-zero entry. There was none.
Signed-off-by Sakari Ailus <[email protected]>
Acked-by Laurent Pinchart <[email protected]>
Quoted 16 lines
--- utils/media-ctl/options.c | 1 + 1 file changed, 1 insertion(+)utils/media-ctl/options.c +1
-0@@ -97,6 +97,7 @@ static struct option opts[] = { {"print-topology", 0, 0, 'p'}, {"reset", 0, 0, 'r'}, {"verbose", 0, 0, 'v'}, + { }, };int parse_cmdline (int argc,char **argv)
Signature · 7 lines
Regards, Laurent Pinchart -- Regards, Laurent Pinchart