X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fhttp.c;h=340808997dee3d73570d718573dbd7ddcd89566b;hb=bb598725b8bcb2b109db06d1761e4d31677e09c3;hp=e125b44ea08ed3b038ede01d9721445bdfdb55c1;hpb=a3303aeeb61dd629df654c3d75816611f73733c2;p=pazpar2-moved-to-github.git diff --git a/src/http.c b/src/http.c index e125b44..3408089 100644 --- a/src/http.c +++ b/src/http.c @@ -1,5 +1,5 @@ /* - * $Id: http.c,v 1.7 2007-01-10 09:35:57 adam Exp $ + * $Id: http.c,v 1.9 2007-01-10 11:56:10 adam Exp $ */ #include @@ -19,6 +19,8 @@ #include #endif +#include + #include #include #include @@ -787,7 +789,7 @@ void http_init(const char *addr) yaz_log(YLOG_LOG, "HTTP listener is %s", addr); - bzero(&myaddr, sizeof myaddr); + memset(&myaddr, 0, sizeof myaddr); myaddr.sin_family = AF_INET; pp = strchr(addr, ':'); if (pp)