[svn-commits] qwell: trunk r943 - /trunk/menuselect.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Oct 7 10:58:11 CDT 2011
Author: qwell
Date: Fri Oct 7 10:58:07 2011
New Revision: 943
URL: http://svnview.digium.com/svn/menuselect?view=rev&rev=943
Log:
Fix --enable/--enable-category.
This is a regression from the defaultenabled fix.
Modified:
trunk/menuselect.c
Modified: trunk/menuselect.c
URL: http://svnview.digium.com/svn/menuselect/trunk/menuselect.c?view=diff&rev=943&r1=942&r2=943
==============================================================================
--- trunk/menuselect.c (original)
+++ trunk/menuselect.c Fri Oct 7 10:58:07 2011
@@ -292,7 +292,7 @@
mem->defaultenabled = cur3->child->value.opaque;
}
- if (!cat->positive_output && (!mem->defaultenabled || !strcasecmp(mem->defaultenabled, "yes"))) {
+ if (!cat->positive_output && !(mem->defaultenabled && strcasecmp(mem->defaultenabled, "no"))) {
mem->was_enabled = mem->enabled = 1;
print_debug("Enabling %s because the category does not have positive output\n", mem->name);
}
More information about the svn-commits
mailing list