From 8b24e8d8f0d3da64e4116650c1e07a2937919d11 Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Wed, 16 Nov 2005 21:46:24 +0000 Subject: [PATCH] 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 svn path=/trunk/; revision=16516 --- gtk/main.c | 8 ++++++-- 1 file 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; } }