dect
/
asterisk
Archived
13
0
Fork 0

ensure that ENUM count requests that are invalid return zero, not blank (issue #6371)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10064 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
kpfleming 2006-02-14 22:18:13 +00:00
parent 0be5cc8fb2
commit dc3302d647
1 changed files with 2 additions and 1 deletions

3
enum.c
View File

@ -1,7 +1,7 @@
/*
* Asterisk -- An open source telephony toolkit.
*
* Copyright (C) 1999 - 2005, Digium, Inc.
* Copyright (C) 1999 - 2006, Digium, Inc.
*
* Mark Spencer <markster@digium.com>
*
@ -491,6 +491,7 @@ int ast_get_enum(struct ast_channel *chan, const char *number, char *dst, int ds
}
if (ret < 0) {
ast_log(LOG_DEBUG, "No such number found: %s (%s)\n", tmp, strerror(errno));
strcpy(dst, "0");
ret = 0;
}