summaryrefslogtreecommitdiffstats
path: root/libelf/gelf_rawchunk.c
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/gelf_rawchunk.c')
-rw-r--r--libelf/gelf_rawchunk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libelf/gelf_rawchunk.c b/libelf/gelf_rawchunk.c
index cab07be5..ced6f9ef 100644
--- a/libelf/gelf_rawchunk.c
+++ b/libelf/gelf_rawchunk.c
@@ -1,5 +1,5 @@
/* Retrieve uninterpreted chunk of the file contents.
- Copyright (C) 2002, 2005 Red Hat, Inc.
+ Copyright (C) 2002, 2005, 2007 Red Hat, Inc.
This file is part of Red Hat elfutils.
Contributed by Ulrich Drepper <[email protected]>, 2002.
@@ -101,6 +101,7 @@ gelf_rawchunk (elf, offset, size)
/* Something went wrong. */
__libelf_seterrno (ELF_E_READ_ERROR);
free (result);
+ result = NULL;
}
return result;