diff options
Diffstat (limited to 'nuttx/netutils/tftpc/tftpc_put.c')
-rw-r--r-- | nuttx/netutils/tftpc/tftpc_put.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/netutils/tftpc/tftpc_put.c b/nuttx/netutils/tftpc/tftpc_put.c index 1d19a2d74..ca158a783 100644 --- a/nuttx/netutils/tftpc/tftpc_put.c +++ b/nuttx/netutils/tftpc/tftpc_put.c @@ -96,7 +96,7 @@ static inline int tftp_incrndx(int ndx) static inline ssize_t tftp_read(int fd, ubyte *buf, size_t buflen) { ssize_t nbytesread; - ssize_t totalread; + ssize_t totalread = 0; while (totalread < buflen) { |