From: Ulrich Drepper Date: Fri, 2 Sep 2005 19:50:17 +0000 (+0000) Subject: Fix little problem with handling multiple files in the same run. X-Git-Tag: elfutils-0.120~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a60501ed03107940c578c9f8194448f22ab62749;p=thirdparty%2Felfutils.git Fix little problem with handling multiple files in the same run. --- diff --git a/src/ChangeLog b/src/ChangeLog index daec5a7a1..770dac822 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2005-09-02 Ulrich Drepper + + * strings.c (main): Reset elfmap variable afte rmunmap call. + 2005-08-28 Ulrich Drepper * ranlib.c: Don't define pread_retry and write_retry here. diff --git a/src/strings.c b/src/strings.c index 1898ac74e..86c2c4b1f 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);