projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d71f8c2
)
perl plugin: Fixed a segfault that appeared in Perl 5.10.
author
Sebastian Harl
<sh@tokkee.org>
Thu, 29 May 2008 22:12:36 +0000
(
00:12
+0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Tue, 3 Jun 2008 14:31:18 +0000
(16:31 +0200)
In Perl 5.10, av_clear() (amongst others) does no longer allow NULL for
the passed array object pointer, thus we have to check for it ourselves.
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
9bd3b4d
..
2bd03af
100644
(file)
--- a/
src/perl.c
+++ b/
src/perl.c
@@
-1118,7
+1118,7
@@
static c_ithread_t *c_ithread_create (PerlInterpreter *base)
aTHX = t->interp;
- if (
NULL != base
) {
+ if (
(NULL != base) && (NULL != PL_endav)
) {
av_clear (PL_endav);
av_undef (PL_endav);
PL_endav = Nullav;