From 8385fdb5906682338bb9d155a64f4b710c6cbd68 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Thu, 23 Sep 2004 05:02:51 +0000 Subject: make our tor_assert actually work when it's going to be triggered, rather than seg fault svn:r2368 --- src/common/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/log.c') diff --git a/src/common/log.c b/src/common/log.c index bdbb488ade..1a91d072ab 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -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); -- cgit v1.2.3-54-g00ecf