Correct the return value check for ast_safe_system.
authorSean Bright <sean@malleable.com>
Mon, 17 Aug 2009 18:18:16 +0000 (18:18 +0000)
committerSean Bright <sean@malleable.com>
Mon, 17 Aug 2009 18:18:16 +0000 (18:18 +0000)
commit0c99f79a7621ed1fa6aef0748735b5d70ceac7ed
tree59239f12c6228049c22dbf371b2e1ab173e6479a
parent36b38525a168716efb22a8f1da00d3dec88156d4
Correct the return value check for ast_safe_system.

The logic here was reversed as ast_safe_system returns -1 on error and not on
success.  Fix suggested by reporter.

(closes issue #15667)
Reported by: loic

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@212574 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/logger.c