Satisfy clang
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Fri, 29 Jan 2016 17:19:31 +0000 (19:19 +0200)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Fri, 29 Jan 2016 17:19:31 +0000 (19:19 +0200)
tftp.c

diff --git a/tftp.c b/tftp.c
index 4470d925bd748ae83c1ddb08f4da1f78947c7af1..f1d0a6be7d0d7a2991b5e4dd4e9a507996fa6cdf 100644 (file)
--- 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");