X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fcache.C;h=63bb4a0de4b32e9e5b9dcb0480c4f751c0f933c2;hp=de8563a96e26013cdcb599b34e29c5651847bf37;hb=8e67d840c5a93f77de021102a4f0bfc4e07504f4;hpb=b350aa5a1ccbadcb5f794183c443c0738cd1e9ab;ds=sidebyside diff --git a/cinelerra-5.1/cinelerra/cache.C b/cinelerra-5.1/cinelerra/cache.C index de8563a9..63bb4a0d 100644 --- a/cinelerra-5.1/cinelerra/cache.C +++ b/cinelerra-5.1/cinelerra/cache.C @@ -125,8 +125,9 @@ SET_TRACE int CICache::check_in(Asset *asset) { total_lock->lock("CICache::check_in"); + CICacheItem *current = 0; if( !check_outs ) { - CICacheItem *current = first; + current = first; while(current && strcmp(current->asset->path, asset->path) != 0) current = NEXT; if(current && current->checked_out) {