Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4e18236

Browse files
committed
PL/Perl: Fix compiler warning
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.
1 parent 00d4f2a commit 4e18236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pl/plperl/plperl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,7 @@ plperl_inline_handler(PG_FUNCTION_ARGS)
17861786
/* Set up a callback for error reporting */
17871787
pl_error_context.callback = plperl_inline_callback;
17881788
pl_error_context.previous = error_context_stack;
1789-
pl_error_context.arg = (Datum) 0;
1789+
pl_error_context.arg = NULL;
17901790
error_context_stack = &pl_error_context;
17911791

17921792
/*

0 commit comments

Comments
 (0)