Content-Length: 272395 | pFad | http://github.com/postgrespro/postgres/commit/f641fc86fbe72a84a9d0a32279c4f9941bde6b6a

94 ECPG: Simplify free_variable() · postgrespro/postgres@f641fc8 · GitHub
Skip to content

Commit f641fc8

Browse files
author
Michael Meskes
committed
ECPG: Simplify free_variable()
Patch by Boszormenyi Zoltan <zb@cybertec.at>
1 parent 1ec4c56 commit f641fc8

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/interfaces/ecpg/ecpglib/execute.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,11 @@ free_variable(struct variable * var)
8787
{
8888
struct variable *var_next;
8989

90-
if (var == NULL)
91-
return;
92-
var_next = var->next;
93-
ecpg_free(var);
94-
95-
while (var_next)
90+
while (var)
9691
{
97-
var = var_next;
9892
var_next = var->next;
9993
ecpg_free(var);
94+
var = var_next;
10095
}
10196
}
10297

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/f641fc86fbe72a84a9d0a32279c4f9941bde6b6a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy