Satisfy clang
This commit is contained in:
parent
fe1c604ccf
commit
3f608e1079
1 changed files with 2 additions and 0 deletions
2
tftp.c
2
tftp.c
|
@ -170,6 +170,8 @@ int tftp_put(struct nmrpd_args *args)
|
||||||
int fd, sock, err, timeout, last_len;
|
int fd, sock, err, timeout, last_len;
|
||||||
char rx[TFTP_PKT_SIZE], tx[TFTP_PKT_SIZE];
|
char rx[TFTP_PKT_SIZE], tx[TFTP_PKT_SIZE];
|
||||||
|
|
||||||
|
sock = -1;
|
||||||
|
|
||||||
fd = open(args->filename, O_RDONLY);
|
fd = open(args->filename, O_RDONLY);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
perror("open");
|
perror("open");
|
||||||
|
|
Loading…
Add table
Reference in a new issue