# HG changeset patch # User ulion # Date 1195797034 0 # Node ID 5a0da5dcadd360f040966a7b96abc0d5d6e54a4a # Parent bed4188998cadf90e01c4d78b5eea032c1a0a056 Prevent from using data->len when data is NULL (when play() return NULL). diff -r bed4188998ca -r 5a0da5dcadd3 libaf/af.c --- a/libaf/af.c Fri Nov 23 04:49:10 2007 +0000 +++ b/libaf/af.c Fri Nov 23 05:50:34 2007 +0000 @@ -514,7 +514,7 @@ if (data->len <= 0) break; data=af->play(af,data); af=af->next; - }while(af); + }while(af && data); return data; }