From: Joseph C. Lehner Date: Fri, 29 Jan 2016 17:19:31 +0000 (+0200) Subject: Satisfy clang X-Git-Tag: v0.9~84 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3f608e107926145eeea85d9242b288aa9fbbe000;p=oweals%2Fnmrpflash.git Satisfy clang --- 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");