Permalink
Browse files

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

  • Loading branch information...
1 parent 5793da7 commit a9bee062439fa6992919d964832415fdd67f8d09 @tagoh committed Dec 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 liblangtag/lt-error.c
View
@@ -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;
}
}

0 comments on commit a9bee06

Please sign in to comment.