perl plugin: Fixed a segfault that appeared in Perl 5.10.
authorSebastian Harl <sh@tokkee.org>
Thu, 29 May 2008 22:12:36 +0000 (00:12 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Tue, 3 Jun 2008 14:31:18 +0000 (16:31 +0200)
commitf1bc46b00671022cdd85c458c53bdbd10853903c
tree29356c6f200b3c8e36769c1ddd3eb5733e20cc0b
parentd71f8c2dfb67859cdadcf066a79460768377aa68
perl plugin: Fixed a segfault that appeared in Perl 5.10.

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