[Asterisk-code-review] res musiconhold: moh general section is a class and issues w... (asterisk[master])

Daniel Journo asteriskteam at digium.com
Wed Mar 8 14:35:17 CST 2017


Daniel Journo has uploaded a new change for review. ( https://gerrit.asterisk.org/5144 )

Change subject: res_musiconhold: moh general section is a class and issues warning
......................................................................

res_musiconhold: moh general section is a class and issues warning

* res_musiconhold.c Re-added code that was previously removed to ensure the
		[general] section is not considered a class

ASTERISK-26353 #close

Change-Id: Ia3dbd11ea2b43ab3e6c820a9827811dd24bea82d
---
M res/res_musiconhold.c
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/44/5144/1

diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 70bb040..914c341 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -1749,6 +1749,10 @@
 				}
 			}
 		}
+		
+		if (!strcasecmp(cat, "general")) {
+			continue;
+		}
 
 		if (!(class = moh_class_malloc())) {
 			break;

-- 
To view, visit https://gerrit.asterisk.org/5144
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia3dbd11ea2b43ab3e6c820a9827811dd24bea82d
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Daniel Journo <dan at keshercommunications.com>



More information about the asterisk-code-review mailing list