]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_musiconhold: Avoid spurious warning when 'format' is the empty string
authorSean Bright <sean.bright@gmail.com>
Tue, 11 Feb 2020 13:46:02 +0000 (08:46 -0500)
committerSean Bright <sean.bright@gmail.com>
Tue, 11 Feb 2020 13:55:31 +0000 (08:55 -0500)
commit1e94cfdf4c00db6b96c6740d4ef66a02acb3e210
treeca2d3e700bdbe67351bca8575a8221906b9d5955
parentb3360fa5dff568bf25873177cadfe724e28a0098
res_musiconhold: Avoid spurious warning when 'format' is the empty string

The change to res_config_odbc that allowed empty strings to be
returned to realtime consumers¹ causes a warning to be emitted when
loading MoH classes. So we need to treat an empty 'format' as if it
was not specified to avoid the warning.

ASTERISK-28735 #close
Reported by: Ross Beer

[1] https://gerrit.asterisk.org/c/asterisk/+/13722

Change-Id: I9a271d721e1a0973e80ebe7d75b46a0d8fa0e5a5
res/res_musiconhold.c