aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_image.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-15 02:02:30 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-15 02:02:30 +0000
commit9e8f015acd3a731f1c2e872b73ed2734b14df3a0 (patch)
treede0aeae5a6c3ff32aa37f0a0361c6a9b91499ccd /apps/app_image.c
parent3cc71d5fb098bfd49a432b62117487e1ddeb4086 (diff)
Few more code clean ups.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54534 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_image.c')
-rw-r--r--apps/app_image.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/app_image.c b/apps/app_image.c
index f5f327197..7f7086eea 100644
--- a/apps/app_image.c
+++ b/apps/app_image.c
@@ -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);