changeset 25115:5a0da5dcadd3

Prevent from using data->len when data is NULL (when play() return NULL).
author ulion
date Fri, 23 Nov 2007 05:50:34 +0000
parents bed4188998ca
children 1e76bb01331f
files libaf/af.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }