Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
timeshift: replace abort() with assert()
  • Loading branch information
perexg committed Jan 5, 2016
1 parent 2897cde commit 3868710
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/timeshift/private.h
Expand Up @@ -196,8 +196,7 @@ static inline void timeshift_file_get0 ( timeshift_file_t *tsf )
static inline void timeshift_file_put0 ( timeshift_file_t *tsf )
{
if (tsf) {
if (!tsf->refcount)
abort();
assert(tsf->refcount > 0);
tsf->refcount--;
}
}
Expand Down

0 comments on commit 3868710

Please sign in to comment.