Commit f641fc86 authored by Michael Meskes's avatar Michael Meskes

ECPG: Simplify free_variable()

Patch by Boszormenyi Zoltan <zb@cybertec.at>
parent 1ec4c56e
......@@ -87,16 +87,11 @@ free_variable(struct variable * var)
{
struct variable *var_next;
if (var == NULL)
return;
var_next = var->next;
ecpg_free(var);
while (var_next)
while (var)
{
var = var_next;
var_next = var->next;
ecpg_free(var);
var = var_next;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment