diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-10-30 16:49:02 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-10-30 16:49:02 +0000 |
commit | 10d36d9f340dbc3756749c011ed26b1cf172c30b (patch) | |
tree | 144230cf7fe8fb0d8c7ff6c8b107f34f4cc50e60 /apps/app_adsiprog.c | |
parent | de90c84b1ae659fcfb9f4b0aeb6dc79f56d9444c (diff) |
fix a few small things found by using sparse
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@152809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_adsiprog.c')
-rw-r--r-- | apps/app_adsiprog.c | 2 |
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; } |