changeset 2413:86777d94dc7a trunk

[svn] - default settings for options.session
author nenolod
date Fri, 26 Jan 2007 08:22:10 -0800
parents f0d65a33bf64
children 4c4669781043
files ChangeLog src/audacious/main.c
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Jan 26 07:37:53 2007 -0800
+++ b/ChangeLog	Fri Jan 26 08:22:10 2007 -0800
@@ -1,3 +1,11 @@
+2007-01-26 15:37:53 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [3834]
+  - handle unknown options
+  
+  trunk/src/audacious/main.c |    8 +++++++-
+  1 file changed, 7 insertions(+), 1 deletion(-)
+
+
 2007-01-26 15:32:55 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [3832]
   - use GOption instead of getopt.
--- a/src/audacious/main.c	Fri Jan 26 07:37:53 2007 -0800
+++ b/src/audacious/main.c	Fri Jan 26 08:22:10 2007 -0800
@@ -1027,6 +1027,9 @@
 
     gtk_init_check_ok = gtk_init_check(&argc, &argv);
 
+    memset(&options, '\0', sizeof(BmpCmdLineOpt));
+    options.session = -1;
+
     context = g_option_context_new(_("- play multimedia files"));
     g_option_context_add_main_entries(context, cmd_entries, PACKAGE_NAME);
     g_option_context_add_group(context, gtk_get_option_group(TRUE));