Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Back-patch 9.4-era compiler warning fixes into older branches.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 17 Feb 2017 22:12:14 +0000 (17:12 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 17 Feb 2017 22:12:14 +0000 (17:12 -0500)
Back-patch commit 4e182361804f8688cef953c998e24134e606aea4
(another thing that longfin's version of clang doesn't like).

src/pl/plperl/plperl.c

index 703df790c2835b77485380e1a48ab5b9a633b80c..5c0877b2797f1bba7e0d6b861e0759897bf8b049 100644 (file)
@@ -1778,7 +1778,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;
 
    /*