Few more code clean ups.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@54534 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp
2007-02-15 02:02:30 +00:00
parent fd3630715b
commit db868d0807
3 changed files with 70 additions and 64 deletions

View File

@@ -96,9 +96,7 @@ static int sendimage_exec(struct ast_channel *chan, void *data)
return 0;
}
res = ast_send_image(chan, args.filename);
if (!res)
if (!(res = ast_send_image(chan, args.filename)))
pbx_builtin_setvar_helper(chan, "SENDIMAGESTATUS", "OK");
ast_module_user_remove(u);