Add support for Solaris/x86 (bug #3064)
[asterisk/asterisk.git] / utils.c
diff --git a/utils.c b/utils.c
index 893543c..6d99111 100755 (executable)
--- 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;