Fix 'init_ui()' so that it can change argc/argv

That's what gtk_init() does with gtk-specific arguments.  IOW, if you do
things like

   subsurface --g-fatal-warnings dives.xml

to get a real abort on gtk warnings, gtk_init needs to be able to
actually change argc/argv.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2011-11-01 17:09:15 -07:00
parent 43601f6546
commit e4bfb65972
3 changed files with 4 additions and 4 deletions

2
main.c
View file

@ -217,7 +217,7 @@ int main(int argc, char **argv)
parse_xml_init();
init_ui(argc, argv);
init_ui(&argc, &argv);
for (i = 1; i < argc; i++) {
const char *a = argv[i];