summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/echo_srv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/echo_srv.c b/tests/echo_srv.c
index b290ca8..dd6fafd 100644
--- a/tests/echo_srv.c
+++ b/tests/echo_srv.c
@@ -260,7 +260,7 @@ static void echo(int sock, struct echo_srv_opts *opts)
int main(int argc, char **argv)
{
int ret;
- int sock;
+ int sock = -1;
struct echo_srv_opts opts;
int opt;
int optindex;