libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit f447149d2ffb7b400e638773733b87cbd05f1371
parent d24178c1f31ef949ac039a667a68f682283979d8
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 14 Aug 2010 20:16:56 +0000

check calloc return value

Diffstat:
Msrc/main/extractor.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/main/extractor.c b/src/main/extractor.c @@ -851,6 +851,8 @@ EXTRACTOR_plugin_add (struct EXTRACTOR_PluginList * prev, return prev; } result = calloc (1, sizeof (struct EXTRACTOR_PluginList)); + if (result == NULL) + return prev; result->next = prev; result->short_libname = strdup (library); if (result->short_libname == NULL)