diff options
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; } |