perl plugin: Use `Perl_newSVpv' rather than `newSVpv'
authorFlorian Forster <octo@crystal.wlan.home.verplant.org>
Fri, 20 Apr 2007 06:33:52 +0000 (08:33 +0200)
committerFlorian Forster <octo@crystal.wlan.home.verplant.org>
Fri, 20 Apr 2007 06:33:52 +0000 (08:33 +0200)
..cause Sebastian said to do so ;)

src/perl.c

index ebdacb8..d8f294f 100644 (file)
@@ -965,7 +965,7 @@ static int perl_config (const char *key, const char *value)
 
                log_debug ("perl_config: loading perl plugin \"%s\"", value);
                Perl_load_module (perl, PERL_LOADMOD_NOIMPORT,
-                               newSVpv (module_name, strlen (module_name)),
+                               Perl_newSVpv (perl, module_name, strlen (module_name)),
                                Nullsv);
        }
        else if (0 == strcasecmp (key, "BaseName")) {