Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't output an error message even if no data is set in lt_error_t

  • Loading branch information...
commit a9bee062439fa6992919d964832415fdd67f8d09 1 parent 5793da7
@tagoh authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  liblangtag/lt-error.c
View
3  liblangtag/lt-error.c
@@ -158,7 +158,8 @@ void
lt_error_clear(lt_error_t *error)
{
if (error) {
- lt_mem_delete_ref(&error->parent, error->data);
+ if (error->data)
+ lt_mem_delete_ref(&error->parent, error->data);
error->data = NULL;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.