]> git.ipfire.org Git - thirdparty/asterisk.git/commit
clang compiler warnings: Fix pointer-bool-converesion warnings
authorMatthew Jordan <mjordan@digium.com>
Wed, 8 Apr 2015 11:42:10 +0000 (11:42 +0000)
committerMatthew Jordan <mjordan@digium.com>
Wed, 8 Apr 2015 11:42:10 +0000 (11:42 +0000)
commit97c68d8d3a3956e8d30cf02f49db31d89f4e9f3b
tree4f8026cdbe0d13b5aac2390ddf2e22b692fca04a
parent3ade8a146a3e9b9777b8e76471f134c91fe4e13b
clang compiler warnings: Fix pointer-bool-converesion warnings

This patch fixes several warnings pointed out by the clang compiler.
* app_minivm: Fixed evaluation of etemplate->locale, which will always
  evaluate to 'true'. This patch changes the evaluation to use
  ast_strlen_zero.
* app_queue:
  - Fixed evaluation of qe->parent->monfmt, which always evaluates to
    true. Instead, we just check to see if the dereferenced pointer
    evaluates to true.
  - Fixed evaluation of mem->state_interface, wrapping it with a call to
    ast_strlen_zero.

Review: https://reviewboard.asterisk.org/r/4541

ASTERISK-24917
Reported by: dkdegroot
patches:
  rb4541.patch submitted by dkdegroot (License 6600)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@434285 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_minivm.c
apps/app_queue.c