Skip to content

Commit c5dfc45

Browse files
committed
Use same variable name for band file descriptor
1 parent 00a45b9 commit c5dfc45

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/sparsebundlefs.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ static int sparsebundle_read_process_band(const char *band_path, size_t length,
306306
syslog(LOG_DEBUG, "reading %zu bytes at offset %ju into %p",
307307
length, uintmax_t(offset), static_cast<void *>(*buffer));
308308

309-
int band_file = sparsebundle_open_file(band_path);
310-
if (band_file != -1) {
311-
read = pread(band_file, *buffer, length, offset);
309+
int band_file_fd = sparsebundle_open_file(band_path);
310+
if (band_file_fd != -1) {
311+
read = pread(band_file_fd, *buffer, length, offset);
312312
if (read == -1) {
313313
syslog(LOG_ERR, "failed to read band: %s", strerror(errno));
314314
return -errno;

0 commit comments

Comments
 (0)