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

Commit ef06ec6

Browse files
committed
Small varlena cleanup.
1 parent 0f413d2 commit ef06ec6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/nodes/copyfuncs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.35 1998/01/20 22:10:58 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.36 1998/01/21 23:42:15 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -803,7 +803,7 @@ _copyConst(Const *from)
803803
*/
804804
int length;
805805

806-
length = *((int *) from->constvalue);
806+
length = VARSIZE(from->constvalue);
807807
newnode->constvalue = PointerGetDatum(palloc(length));
808808
memmove((char *) newnode->constvalue,
809809
(char *) from->constvalue, length);

0 commit comments

Comments
 (0)