]> git.ipfire.org Git - thirdparty/asterisk.git/commit
main/cli: Use proper string methods to check existence of context/exten/app 73/1673/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:02:45 +0000 (22:02 -0600)
commitaf288b2d9650bf7fdc30591e82a06b6c7610b80f
tree3a813cf2082aa1354eaafbc28e362d1b493abe02
parent6fcd361540a2b38724d5f49bd193d97f5522616c
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