PL/Perl: Fix compiler warning
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 5 Feb 2014 01:04:35 +0000 (20:04 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 5 Feb 2014 01:08:39 +0000 (20:08 -0500)
The code was assigning a (Datum) 0 to a void pointer.  That creates a
warning from clang 3.4.  It was probably a thinko to begin with.

src/pl/plperl/plperl.c

index a81c18513e506b326e1aa36fb384149cee7b80b7..d9aa5efa324347287c66b3a3ff44fa9ed4526d1f 100644 (file)
@@ -1786,7 +1786,7 @@ plperl_inline_handler(PG_FUNCTION_ARGS)
        /* Set up a callback for error reporting */
        pl_error_context.callback = plperl_inline_callback;
        pl_error_context.previous = error_context_stack;
-       pl_error_context.arg = (Datum) 0;
+       pl_error_context.arg = NULL;
        error_context_stack = &pl_error_context;
 
        /*