summaryrefslogtreecommitdiff
path: root/popthelp.c
diff options
context:
space:
mode:
Diffstat (limited to 'popthelp.c')
-rw-r--r--popthelp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/popthelp.c b/popthelp.c
index 0f62d2f..82bf6f8 100644
--- a/popthelp.c
+++ b/popthelp.c
@@ -775,7 +775,7 @@ static int showShortOptions(const struct poptOption * opt, FILE * fp,
/*@=boundswrite@*/
/* On return to top level, print the short options, return print length. */
- if (s == str && *s != '\0') {
+ if (s != str && *s != '\0') {
fprintf(fp, " [-%s]", s);
len = strlen(s) + sizeof(" [-]")-1;
}