]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
timeshift: replace abort() with assert()
authorJaroslav Kysela <perex@perex.cz>
Tue, 5 Jan 2016 15:37:01 +0000 (16:37 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 5 Jan 2016 15:37:01 +0000 (16:37 +0100)
src/timeshift/private.h

index af70ad19f0a08fbed373df19b57bed9293722af2..868acd62d946d05d85d5d78080d296464c465f70 100644 (file)
@@ -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--;
   }
 }