Skip to content

Commit

Permalink
Make sure fd is always initialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
kr committed May 27, 2010
1 parent b4dbe7e commit 349a98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net.c
Expand Up @@ -32,7 +32,7 @@ static int brakes_are_on = 1, after_startup = 0;
int
make_server_socket(char *host, char *port)
{
int fd, flags, r;
int fd = -1, flags, r;
struct linger linger = {0, 0};
struct addrinfo *airoot, *ai, hints;

Expand Down

0 comments on commit 349a98c

Please sign in to comment.