Skip to content

Commit

Permalink
Moving variables into while loop
Browse files Browse the repository at this point in the history
  • Loading branch information
colincornaby committed Feb 18, 2024
1 parent 87434f2 commit 09db332
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/Plasma/Apps/plClient/Mac-Cocoa/PLSPatcher.mm
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,12 @@ bool IApproveDownload(const plFileName& file)

static la_ssize_t copy_data(struct archive *ar, struct archive *aw)
{
la_ssize_t r;
const void *buff;
size_t size;
la_int64_t offset;

while (true) {
la_ssize_t r;
const void *buff;
size_t size;
la_int64_t offset;

r = archive_read_data_block(ar, &buff, &size, &offset);
if (r == ARCHIVE_EOF)
return (ARCHIVE_OK);
Expand Down

0 comments on commit 09db332

Please sign in to comment.