diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-11-16 21:46:24 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-11-16 21:46:24 +0000 |
commit | 54e0e64cb4ffa155a25430195bb36873884be863 (patch) | |
tree | afb27bf86af89dcc066dcf3efb8fcfabe6d57034 /gtk | |
parent | 07002033990823fd19acfd9775a2c7b75dd109fd (diff) |
the "pre-scan" of the command line parameters shouldn't stop the capture child. The child uses a slightly different parameter pattern, so this isn't an error here. Fixes the reported capture problem
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16516 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/main.c b/gtk/main.c index 62ccd2ab1c..2598a2a51b 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -1777,8 +1777,12 @@ main(int argc, char *argv[]) /* will never return! */ exit(0); break; - case '?': /* argument-parsing error - quit now */ - exit(0); + case '?': /* argument-parsing error - quit now if we're a normal Ethereal */ + /* (a capture child uses a slightly different options pattern, */ + /* so don't quit here as this error is only meaningful in the "real" run later) */ + if(!capture_child) + exit(0); + break; } } |