]> git.ipfire.org Git - thirdparty/asterisk.git/commit
main/cli: Use proper string methods to check existence of context/exten/app 72/1672/1
authorMatt Jordan <mjordan@digium.com>
Thu, 22 Oct 2015 14:44:43 +0000 (09:44 -0500)
committerMatt Jordan <mjordan@digium.com>
Sat, 21 Nov 2015 04:00:07 +0000 (22:00 -0600)
commit9315a93757e2f78d5d54e9363a45bc8e1cba7f33
treee39db8ef2a38714a596b44bb3026f7160a7eeae3
parent5ec076b3b8590aad8dbc31afa341605eec7146bd
main/cli: Use proper string methods to check existence of context/exten/app

Because the context, extension, and application are stored in stringfields,
checking for them being NULL doesn't work so well. This patch uses the
appropriate string library call, ast_strlen_zero, to see if there is a value
in the context/exten/app values.

Change-Id: Ie09623bfdf35f5a8d3b23dd596647fe3c97b9a23
main/cli.c