Browse Source

Fix uninitialized file descriptor

Joseph C. Lehner 7 years ago
parent
commit
1d6013fce4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tftp.c

+ 1 - 0
tftp.c

@@ -238,6 +238,7 @@ int tftp_put(struct nmrpd_args *args)
 
 	sock = -1;
 	ret = -1;
+	fd = -1;
 
 	if (g_interrupted) {
 		goto cleanup;