aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-05-08 16:30:44 +0000
committerChristian Grothoff <christian@grothoff.org>2012-05-08 16:30:44 +0000
commite0fa7a94df85e976e4b84efbefc804f6c070624f (patch)
treeebec0defb5a21cc8c24063c2da145b63d6d7eac4
parent8b019a71f547023de8b32674e457007215412aab (diff)
downloadlibextractor-e0fa7a94df85e976e4b84efbefc804f6c070624f.tar.gz
libextractor-e0fa7a94df85e976e4b84efbefc804f6c070624f.zip
-LRN: don't leak errno from extract method
-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 f7b9cb9..bfee6d5 100644
--- a/src/main/extractor.c
+++ b/src/main/extractor.c
@@ -2679,6 +2679,8 @@ ask_in_process_plugin (struct EXTRACTOR_PluginList *plugin, void *shm_ptr, EXTRA
2679 { 2679 {
2680 plugin->shm_ptr = shm_ptr; 2680 plugin->shm_ptr = shm_ptr;
2681 extract_reply = plugin->extract_method (plugin, proc, proc_cls); 2681 extract_reply = plugin->extract_method (plugin, proc, proc_cls);
2682 /* Don't leak errno from the extract method */
2683 errno = 0;
2682 if (extract_reply == 1) 2684 if (extract_reply == 1)
2683 plugin->seek_request = -1; 2685 plugin->seek_request = -1;
2684 } 2686 }