summaryrefslogtreecommitdiff
path: root/src/strings.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-09-02 19:50:17 +0000
committerUlrich Drepper <drepper@redhat.com>2005-09-02 19:50:17 +0000
commita60501ed03107940c578c9f8194448f22ab62749 (patch)
treeef6d342311af3bd3882b05efb772550c36aeccc2 /src/strings.c
parent7d65d01496e465606740033f6ba76b42ddb9815b (diff)
downloadelfutils-a60501ed03107940c578c9f8194448f22ab62749.tar.gz
Fix little problem with handling multiple files in the same run.
Diffstat (limited to 'src/strings.c')
-rw-r--r--src/strings.c5
1 files changed, 4 insertions, 1 deletions
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);