]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix scoping error with "disk" variable 791/head
authorGeorge Hartzell <george.hartzell.gh1@contractors.roche.com>
Thu, 29 Sep 2016 21:30:44 +0000 (14:30 -0700)
committerGeorge Hartzell <george.hartzell.gh1@contractors.roche.com>
Thu, 29 Sep 2016 21:30:44 +0000 (14:30 -0700)
commite2c01a16b75212f48e8e65bc53b7fb47329b544d
treeee269b6eb5a2930e2074d5f42d6d552fcd8c746f
parentd93dafd1f00f8ac550e73f0a83f36853e3db3e8f
Fix scoping error with "disk" variable

The variable named 'disk' inside the loop was hiding the variable named
'disk' at the outer level.  The outer variable was never used, get rid
of it.

Move the call to archive_read_disk_set_standard_lookup(disk) inside the
loop so that it Does What It Should.
examples/minitar/minitar.c