OSDN Git Service

Suppress a possibly-uninitialized-variable warning. (I'm only seeing it
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 16 May 2008 18:34:51 +0000 (18:34 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 16 May 2008 18:34:51 +0000 (18:34 +0000)
on Apple's gcc and not my other machines, but still it seems worth
getting rid of.)

src/pl/plpgsql/src/pl_exec.c

index aeb5d36..f408861 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.215 2008/05/15 22:39:49 tgl Exp $
+ *       $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.216 2008/05/16 18:34:51 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -4047,7 +4047,7 @@ exec_eval_expr(PLpgSQL_execstate *estate,
                           bool *isNull,
                           Oid *rettype)
 {
-       Datum           result;
+       Datum           result = 0;
        int                     rc;
 
        /*