mirror of
https://github.com/dracutdevs/dracut.git
synced 2024-10-27 00:55:34 +03:00
skipcpio: limit the local var scope
This commit is contained in:
parent
e81836f328
commit
c23d6ce6ea
@ -40,7 +40,6 @@ int main(int argc, char **argv)
|
||||
{
|
||||
FILE *f;
|
||||
size_t s;
|
||||
long pos = 0;
|
||||
|
||||
if (argc != 2) {
|
||||
fprintf(stderr, "Usage: %s <file>\n", argv[0]);
|
||||
@ -65,6 +64,7 @@ int main(int argc, char **argv)
|
||||
/* check, if this is a cpio archive */
|
||||
if ((buf[0] == 0x71 && buf[1] == 0xc7)
|
||||
|| (buf[0] == '0' && buf[1] == '7' && buf[2] == '0' && buf[3] == '7' && buf[4] == '0' && buf[5] == '1')) {
|
||||
long pos = 0;
|
||||
|
||||
/* Search for CPIO_END */
|
||||
do {
|
||||
|
Loading…
Reference in New Issue
Block a user