aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_adsiprog.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-30 16:49:02 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-30 16:49:02 +0000
commit5cb4e461fd31f7b0c850cae76d64de23d08722f3 (patch)
tree144230cf7fe8fb0d8c7ff6c8b107f34f4cc50e60 /apps/app_adsiprog.c
parent5cb631dcffe2c33f5499acedfa5abe08d05f1d0c (diff)
fix a few small things found by using sparse
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@152809 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_adsiprog.c')
-rw-r--r--apps/app_adsiprog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_adsiprog.c b/apps/app_adsiprog.c
index 8ee3a0410..255026fbd 100644
--- a/apps/app_adsiprog.c
+++ b/apps/app_adsiprog.c
@@ -828,7 +828,7 @@ static int onevent(char *buf, char *name, int id, char *args, struct adsi_script
ast_log(LOG_WARNING, "'%s' is not a valid state name at line %d of %s\n", tok, lineno, script);
return 0;
}
- if ((snums[scnt] = getstatebyname(state, sname, script, lineno, 0) < 0)) {
+ if ((snums[scnt] = getstatebyname(state, sname, script, lineno, 0) == NULL)) {
ast_log(LOG_WARNING, "State '%s' not declared at line %d of %s\n", sname, lineno, script);
return 0;
}