From: Andre Noll Date: Fri, 1 May 2009 11:35:54 +0000 (+0200) Subject: fecdec: Fix warning message when freeing incomplete groups. X-Git-Tag: v0.3.4~10 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=9da3498d99e07ba38a205fa3833f1ec95bc7b33b;p=paraslash.git fecdec: Fix warning message when freeing incomplete groups. This could lead to a segfault. --- diff --git a/fecdec_filter.c b/fecdec_filter.c index bc530062..817e4c66 100644 --- a/fecdec_filter.c +++ b/fecdec_filter.c @@ -161,8 +161,8 @@ static struct fecdec_group *free_oldest_group(struct private_fecdec_data *pfd) } if (!group_complete(oldest) && !group_empty(oldest)) PARA_WARNING_LOG("Clearing incomplete group %d " - "(contains %d slices)\n", fg->h.group_num, - fg->num_received_slices); + "(contains %d slices)\n", oldest->h.group_num, + oldest->num_received_slices); clear_group(oldest); return oldest; }