projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perl plugin: Warn if "EnableDebugger" has been used after "LoadPlugin".
[collectd.git]
/
src
/
perl.c
diff --git
a/src/perl.c
b/src/perl.c
index
1ed9d00
..
50d189f
100644
(file)
--- a/
src/perl.c
+++ b/
src/perl.c
@@
-940,6
+940,11
@@
static int perl_config_includedir (oconfig_item_t *ci)
|| (OCONFIG_TYPE_STRING != ci->values[0].type))
return 1;
+ if (NULL == aTHX) {
+ log_warn ("EnableDebugger has no effects if used after LoadPlugin.");
+ return 1;
+ }
+
value = ci->values[0].value.string;
if (NULL == perl) {