diff options
Diffstat (limited to 'src/common/log.c')
-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 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); |