]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Fix little problem with handling multiple files in the same run.
authorUlrich Drepper <drepper@redhat.com>
Fri, 2 Sep 2005 19:50:17 +0000 (19:50 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 2 Sep 2005 19:50:17 +0000 (19:50 +0000)
src/ChangeLog
src/strings.c

index daec5a7a14f32bca1ec219c9caa733ddb3ede8a3..770dac822e0ab93d1bf4be3e6e220f67e38dbd7d 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-02  Ulrich Drepper  <drepper@redhat.com>
+
+       * strings.c (main): Reset elfmap variable afte rmunmap call.
+
 2005-08-28  Ulrich Drepper  <drepper@redhat.com>
 
        * ranlib.c: Don't define pread_retry and write_retry here.
index 1898ac74e764ef3eaf4ebedee50a4ad3a4ba9fad..86c2c4b1f66ae7fe4be735de2e51ad83924d4b1a 100644 (file)
@@ -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);