Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>
void
vsc_error_cleanup (struct VscError *error);
+void
+vsc_error_reset (struct VscError *error);
+
struct VscError *
vsc_error_new (void);
}
}
+void
+vsc_error_reset (struct VscError *error)
+{
+ vsc_error_cleanup (error);
+ vsc_error_init (error);
+}
+
struct VscError *
vsc_error_new (void)
{
return;
}
- if ((*error)->branch) {
+ if ((*error)->branch != NULL) {
vsc_error_cleanup ((*error)->branch);
}
+
vsc_free (&(*error)->branch);
}