summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libaf/af.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libaf/af.c b/libaf/af.c
index c229f9eee6..eb5aa38d36 100644
--- a/libaf/af.c
+++ b/libaf/af.c
@@ -514,7 +514,7 @@ af_data_t* af_play(af_stream_t* s, af_data_t* data)
if (data->len <= 0) break;
data=af->play(af,data);
af=af->next;
- }while(af);
+ }while(af && data);
return data;
}