projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7237c72
)
perl plugin: Warn if "EnableDebugger" has been used after "LoadPlugin".
author
Sebastian Harl
<sh@tokkee.org>
Mon, 25 Feb 2008 07:28:39 +0000
(08:28 +0100)
committer
Florian Forster
<octo@huhu.verplant.org>
Mon, 25 Feb 2008 07:28:39 +0000
(08:28 +0100)
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/perl.c
patch
|
blob
|
history
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) {