diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-01 17:09:15 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-01 17:09:15 -0700 |
commit | e4bfb6597279ca3d9aa3678a617f5f0aef298278 (patch) | |
tree | 6262f40ce2aca37fc8b7aa63905d3c190be173cb /main.c | |
parent | 43601f654675c8734c9ca5850cc41dac16d1989a (diff) | |
download | subsurface-e4bfb6597279ca3d9aa3678a617f5f0aef298278.tar.gz |
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>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |