|
1 | 1 | /********************************************************************** |
2 | 2 | * plpython.c - python as a procedural language for PostgreSQL |
3 | 3 | * |
4 | | - *$PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.102 2007/07/13 04:57:59 tgl Exp $ |
| 4 | + *$PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.103 2007/08/10 03:16:04 tgl Exp $ |
5 | 5 | * |
6 | 6 | ********************************************************************* |
7 | 7 | */ |
@@ -1259,6 +1259,7 @@ PLy_procedure_create(FunctionCallInfo fcinfo, Oid tgreloid, |
1259 | 1259 | "proargnames must have the same number of elements " |
1260 | 1260 | "as the function has arguments"); |
1261 | 1261 | proc->argnames= (char**)PLy_malloc(sizeof(char*)*proc->nargs); |
| 1262 | +memset(proc->argnames,0,sizeof(char*)*proc->nargs); |
1262 | 1263 | } |
1263 | 1264 | } |
1264 | 1265 | for (i=0;i<fcinfo->nargs;i++) |
|