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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy