From 3f608e107926145eeea85d9242b288aa9fbbe000 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Fri, 29 Jan 2016 19:19:31 +0200 Subject: [PATCH] Satisfy clang --- tftp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tftp.c b/tftp.c index 4470d92..f1d0a6b 100644 --- a/tftp.c +++ b/tftp.c @@ -170,6 +170,8 @@ int tftp_put(struct nmrpd_args *args) int fd, sock, err, timeout, last_len; char rx[TFTP_PKT_SIZE], tx[TFTP_PKT_SIZE]; + sock = -1; + fd = open(args->filename, O_RDONLY); if (fd < 0) { perror("open"); -- 2.25.1