aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_softhangup.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_softhangup.c')
-rwxr-xr-xapps/app_softhangup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_softhangup.c b/apps/app_softhangup.c
index d64530f7f..66c7c412b 100755
--- a/apps/app_softhangup.c
+++ b/apps/app_softhangup.c
@@ -61,7 +61,7 @@ static int softhangup_exec(struct ast_channel *chan, void *data)
char name[AST_CHANNEL_NAME] = "";
int all = 0;
- if (!data || ast_strlen_zero(data)) {
+ if (ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "SoftHangup requires an argument (Technology/resource)\n");
return 0;
}