Satisfy clang

This commit is contained in:
Joseph C. Lehner 2016-01-29 19:19:31 +02:00
parent fe1c604ccf
commit 3f608e1079

2
tftp.c
View file

@ -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");