diff options
author | Roger Dingledine <arma@torproject.org> | 2004-09-23 05:02:51 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-09-23 05:02:51 +0000 |
commit | 8385fdb5906682338bb9d155a64f4b710c6cbd68 (patch) | |
tree | 4515fef5b3f57b6b030124938919cf4727724c78 /src/common | |
parent | a1979800abcb170ebc185987b83a770c70905848 (diff) | |
download | tor-8385fdb5906682338bb9d155a64f4b710c6cbd68.tar tor-8385fdb5906682338bb9d155a64f4b710c6cbd68.tar.gz |
make our tor_assert actually work when it's going to be triggered,
rather than seg fault
svn:r2368
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/log.c b/src/common/log.c index bdbb488ad..1a91d072a 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); |