fecdec: Fix warning message when freeing incomplete groups.
authorAndre Noll <maan@systemlinux.org>
Fri, 1 May 2009 11:35:54 +0000 (13:35 +0200)
committerAndre Noll <maan@systemlinux.org>
Fri, 1 May 2009 11:35:54 +0000 (13:35 +0200)
This could lead to a segfault.

fecdec_filter.c

index bc53006..817e4c6 100644 (file)
@@ -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;
 }