aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_image.c
diff options
context:
space:
mode:
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);