summaryrefslogtreecommitdiff
path: root/popt
diff options
context:
space:
mode:
authorewt <devnull@localhost>1999-04-07 06:20:13 +0000
committerewt <devnull@localhost>1999-04-07 06:20:13 +0000
commit362c4cc03213c78e959a3af6cfabef6695e6a723 (patch)
tree5d2339647913c97658867f1f3b6f883dbc73ef61 /popt
parent34cf387ac294d9c832854c2dcec5d8ff8ee3cc87 (diff)
downloadrpm-362c4cc03213c78e959a3af6cfabef6695e6a723.tar.gz
rpm-362c4cc03213c78e959a3af6cfabef6695e6a723.tar.bz2
rpm-362c4cc03213c78e959a3af6cfabef6695e6a723.zip
we weren't quite careful enough about testing for a single -
CVS patchset: 2964 CVS date: 1999/04/07 06:20:13
Diffstat (limited to 'popt')
-rw-r--r--popt/popt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/popt/popt.c b/popt/popt.c
index 4549955d3..bfcc0054e 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) {