make our tor_assert actually work when it's going to be triggered,

rather than seg fault


svn:r2368
This commit is contained in:
Roger Dingledine 2004-09-23 05:02:51 +00:00
parent a1979800ab
commit 8385fdb590

View file

@ -233,7 +233,7 @@ static void delete_log(logfile_t *victim) {
logfiles = victim->next;
else {
for(tmpl = logfiles; tmpl && tmpl->next != victim; tmpl=tmpl->next) ;
tor_assert(tmpl->next == victim);
tor_assert(tmpl && tmpl->next == victim);
tmpl->next = victim->next;
}
tor_free(victim->filename);