From 386871029eb512d46e88e676d2482efa0c5376aa Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 5 Jan 2016 16:37:01 +0100 Subject: [PATCH] timeshift: replace abort() with assert() --- src/timeshift/private.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/timeshift/private.h b/src/timeshift/private.h index af70ad19f..868acd62d 100644 --- a/src/timeshift/private.h +++ b/src/timeshift/private.h @@ -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--; } } -- 2.47.3