summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bcdc88f)
raw | patch | inline | side by side (parent: bcdc88f)
author | Florian Forster <octo@collectd.org> | |
Thu, 17 Dec 2015 14:13:39 +0000 (15:13 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 17 Dec 2015 14:13:53 +0000 (15:13 +0100) |
CID: 37985
src/perl.c | patch | blob | history |
diff --git a/src/perl.c b/src/perl.c
index 67cb842b0b06f0c42332f4ee999e5fd45a91aac1..d42afc2001f85311706d634dc96ec904f2c6959d 100644 (file)
--- a/src/perl.c
+++ b/src/perl.c
int current_status = 0;
if (NULL != perl_threads)
- aTHX = PERL_GET_CONTEXT;
+ {
+ if ((aTHX = PERL_GET_CONTEXT) == NULL)
+ return -1;
+ }
if (0 == strcasecmp (c->key, "LoadPlugin"))
current_status = perl_config_loadplugin (aTHX_ c);