From 362c4cc03213c78e959a3af6cfabef6695e6a723 Mon Sep 17 00:00:00 2001 From: ewt Date: Wed, 7 Apr 1999 06:20:13 +0000 Subject: [PATCH] we weren't quite careful enough about testing for a single - CVS patchset: 2964 CVS date: 1999/04/07 06:20:13 --- popt/popt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popt/popt.c b/popt/popt.c index 4549955..bfcc005 100644 --- a/popt/popt.c +++ b/popt/popt.c @@ -257,7 +257,7 @@ static const struct poptOption * findOption(const struct poptOption * table, const struct poptOption * cb = NULL; /* This happens when a single - is given */ - if (singleDash && !shortName) + if (singleDash && !shortName && !*longName) shortName = '-'; while (opt->longName || opt->shortName || opt->arg) { -- 2.7.4