perl plugin: Warn if "EnableDebugger" has been used after "LoadPlugin".
authorSebastian Harl <sh@tokkee.org>
Mon, 25 Feb 2008 07:28:39 +0000 (08:28 +0100)
committerFlorian 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

index 1ed9d00..50d189f 100644 (file)
@@ -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) {