Quantcast

[Jack-Devel] [PATCH] server_control: properly end long_options[]

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Jack-Devel] [PATCH] server_control: properly end long_options[]

David Kastrup
This caused segfaults on startup.
---
 server_control.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server_control.c b/server_control.c
index cd6c9f1..5743f54 100644
--- a/server_control.c
+++ b/server_control.c
@@ -151,6 +151,7 @@ int main(int argc, char *argv[])
  struct option long_options[] = {
  {"driver", 1, 0, 'd'},
  {"client", 1, 0, 'c'},
+ {0, 0, 0, 0}
  };
     
  while ((opt = getopt_long (argc, argv, options, long_options, &option_index)) != EOF) {
--
2.11.0

_______________________________________________
Jack-Devel mailing list
[hidden email]
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Loading...