Skip to content

Commit

Permalink
Merge pull request #3 from dfellis/master
Browse files Browse the repository at this point in the history
Fix node-jscoverage for Mac, will fix when loading the module, it throw segment fault
  • Loading branch information
sun fang committed Oct 25, 2012
2 parents 6c26617 + b52f05a commit c7fc805
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http-server.c
Expand Up @@ -153,6 +153,7 @@ void HTTPServer_run(const char * ip_address, uint16_t port, HTTPServerHandler ha
setsockopt(server->s, SOL_SOCKET, SO_REUSEADDR, (const char *) &optval, sizeof(optval));

struct sockaddr_in a;
bzero(&a, sizeof(a));
a.sin_family = AF_INET;
a.sin_port = htons(server->port);
if (server->ip_address == NULL) {
Expand Down

0 comments on commit c7fc805

Please sign in to comment.