summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Kolesa <quaker66@gmail.com>2014-01-24 10:12:41 +0000
committerDaniel Kolesa <quaker66@gmail.com>2014-01-24 10:12:41 +0000
commitf2c9fcf5f18fcf008dbb8cea50acfc5370eab83d (patch)
treef53f74d02668b781b62ada48308f11a4e9c4c07a /src
parentf5c125dfc286ffc596e2acfe3fde65be41f0e9d9 (diff)
a small ecore_getopt bugfix
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore/ecore_getopt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore/ecore_getopt.c b/src/lib/ecore/ecore_getopt.c
index 7a1505f4c2..8c978f1ec6 100644
--- a/src/lib/ecore/ecore_getopt.c
+++ b/src/lib/ecore/ecore_getopt.c
@@ -641,7 +641,8 @@ _ecore_getopt_help_desc_categories(FILE *fp,
641 641
642 /* do not print available categories if none available */ 642 /* do not print available categories if none available */
643 for (; !_ecore_getopt_desc_is_sentinel(desc); desc++) 643 for (; !_ecore_getopt_desc_is_sentinel(desc); desc++)
644 if (desc->action == ECORE_GETOPT_ACTION_CATEGORY) goto hascat; 644 if (desc->action == ECORE_GETOPT_ACTION_CATEGORY && desc->longname)
645 goto hascat;
645 646
646 return _ecore_getopt_help_line(fp, base, total, used, 647 return _ecore_getopt_help_line(fp, base, total, used,
647 _("No categories available."), 648 _("No categories available."),