diff options
| author | Ulrich Drepper <[email protected]> | 2005-09-02 19:50:17 +0000 |
|---|---|---|
| committer | Ulrich Drepper <[email protected]> | 2005-09-02 19:50:17 +0000 |
| commit | a60501ed03107940c578c9f8194448f22ab62749 (patch) | |
| tree | ef6d342311af3bd3882b05efb772550c36aeccc2 /src | |
| parent | 7d65d01496e465606740033f6ba76b42ddb9815b (diff) | |
Fix little problem with handling multiple files in the same run.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/strings.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index daec5a7a..770dac82 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2005-09-02 Ulrich Drepper <[email protected]> + + * strings.c (main): Reset elfmap variable afte rmunmap call. + 2005-08-28 Ulrich Drepper <[email protected]> * ranlib.c: Don't define pread_retry and write_retry here. diff --git a/src/strings.c b/src/strings.c index 1898ac74..86c2c4b1 100644 --- a/src/strings.c +++ b/src/strings.c @@ -198,7 +198,10 @@ main (int argc, char *argv[]) } if (elfmap != NULL && elfmap != MAP_FAILED) - munmap (elfmap, elfmap_size); + { + munmap (elfmap, elfmap_size); + elfmap = NULL; + } } while (++remaining < argc); |
