From: Chris Rienzo Date: Mon, 15 Apr 2019 20:45:44 +0000 (-0400) Subject: FS-11785 [mod_commands] tell scan-build that exten pointer is guaranteed not to be... X-Git-Tag: v1.10.0~166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f46ce1da2b8785c002a3ab844d681a7cb69037d;p=thirdparty%2Ffreeswitch.git FS-11785 [mod_commands] tell scan-build that exten pointer is guaranteed not to be NULL --- diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 64a97ad866..ef9d1bb880 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -5044,6 +5044,8 @@ SWITCH_STANDARD_API(originate_function) cid_name = argv[i++]; cid_num = argv[i++]; + switch_assert(exten); + if (!dp) { dp = "XML"; }