git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7771436)
Make code malloc memory of proper length.
2001年7月12日 01:19:40 +0000 (01:19 +0000)
2001年7月12日 01:19:40 +0000 (01:19 +0000)

diff --git a/src/pl/plpgsql/src/gram.y b/src/pl/plpgsql/src/gram.y
index 4637fb97cb577cf3a179ac2a8d0b0be5935f035c..c059097a3fa0c41d2fd41577cd5e6266203de865 100644 (file)
--- a/src/pl/plpgsql/src/gram.y
+++ b/src/pl/plpgsql/src/gram.y
@@ -4,7 +4,7 @@
* procedural language
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.22 2001年07月11日 18:54:18 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.23 2001年07月12日 01:19:40 momjian Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
@@ -332,7 +332,7 @@ decl_statement : decl_varname decl_const decl_datatype decl_notnull decl_defval
{
PLpgSQL_rec *new;
- new = malloc(sizeof(PLpgSQL_var));
+ new = malloc(sizeof(PLpgSQL_rec));
new->dtype = PLPGSQL_DTYPE_REC;
new->refname = 1ドル.name;
@@ -374,8 +374,8 @@ decl_statement : decl_varname decl_const decl_datatype decl_notnull decl_defval
new = malloc(sizeof(PLpgSQL_var));
memset(new, 0, sizeof(PLpgSQL_var));
- curname_def = malloc(sizeof(PLpgSQL_var));
- memset(curname_def, 0, sizeof(PLpgSQL_var));
+ curname_def = malloc(sizeof(PLpgSQL_expr));
+ memset(curname_def, 0, sizeof(PLpgSQL_expr));
new->dtype = PLPGSQL_DTYPE_VAR;
new->refname = 1ドル.name;
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /