aboutsummaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rwxr-xr-xutils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index 893543c15..6d99111b1 100755
--- a/utils.c
+++ b/utils.c
@@ -164,6 +164,7 @@ struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp)
integers, we break with tradition and refuse to look up a
pure integer */
s = host;
+ res = 0;
while(s && *s) {
if (!isdigit(*s))
break;