[asterisk-commits] kmoore: branch kmoore/stasis-http_sounds r387657 - /team/kmoore/stasis-http_s...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat May 4 14:12:03 CDT 2013
Author: kmoore
Date: Sat May 4 14:12:02 2013
New Revision: 387657
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=387657
Log:
The text field shouldn't show up if it is blank
Modified:
team/kmoore/stasis-http_sounds/res/stasis_http/resource_sounds.c
Modified: team/kmoore/stasis-http_sounds/res/stasis_http/resource_sounds.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/stasis-http_sounds/res/stasis_http/resource_sounds.c?view=diff&rev=387657&r1=387656&r2=387657
==============================================================================
--- team/kmoore/stasis-http_sounds/res/stasis_http/resource_sounds.c (original)
+++ team/kmoore/stasis-http_sounds/res/stasis_http/resource_sounds.c Sat May 4 14:12:02 2013
@@ -66,7 +66,7 @@
char *filename_dup;
description = ast_sounds_get_description(filename, "en");
- if (!description) {
+ if (ast_strlen_zero(description)) {
sound = ast_json_pack("{s: s, s: []}",
"id", filename,
"formats");
More information about the asterisk-commits
mailing list