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 e188211de3
commit c94a4bf0fb
+1 -1
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);