Commit 128b975
committed
fix(tar): fix access of the global variable
The function `_gtar` calls `__tar_try_mode`, and `__tar_try_mode`
checks the state of the previous-scope `basic_tar`. However,
`__tar_try_mode` called from `_gtar` references the state of the
global scope because `_gtar` does not declare `basic_tar`. We need to
declare `basic_tar` local to `_gtar` the same as done in
`__posix_tar`.basic_tar
1 parent 1bdc18e commit 128b975
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | | - | |
| 489 | + | |
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
| 494 | + | |
494 | 495 | | |
495 | 496 | | |
496 | 497 | | |
| |||
0 commit comments