aboutsummaryrefslogtreecommitdiff
path: root/src/main/extractor.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-08-14 20:16:56 +0000
committerChristian Grothoff <christian@grothoff.org>2010-08-14 20:16:56 +0000
commitf447149d2ffb7b400e638773733b87cbd05f1371 (patch)
tree5cc9239f5e194f12795dbac179b1251ecc4c864c /src/main/extractor.c
parentd24178c1f31ef949ac039a667a68f682283979d8 (diff)
downloadlibextractor-f447149d2ffb7b400e638773733b87cbd05f1371.tar.gz
libextractor-f447149d2ffb7b400e638773733b87cbd05f1371.zip
check calloc return value
Diffstat (limited to 'src/main/extractor.c')
-rw-r--r--src/main/extractor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/extractor.c b/src/main/extractor.c
index 283a10f..1931f7a 100644
--- a/src/main/extractor.c
+++ b/src/main/extractor.c
@@ -851,6 +851,8 @@ EXTRACTOR_plugin_add (struct EXTRACTOR_PluginList * prev,
851 return prev; 851 return prev;
852 } 852 }
853 result = calloc (1, sizeof (struct EXTRACTOR_PluginList)); 853 result = calloc (1, sizeof (struct EXTRACTOR_PluginList));
854 if (result == NULL)
855 return prev;
854 result->next = prev; 856 result->next = prev;
855 result->short_libname = strdup (library); 857 result->short_libname = strdup (library);
856 if (result->short_libname == NULL) 858 if (result->short_libname == NULL)