Make explicit an assert

This commit is contained in:
Abramo Bagnara 2000-04-12 20:44:14 +00:00
parent 7c705b0954
commit 16b31a3f6c

View file

@ -37,6 +37,7 @@
#include <errno.h> #include <errno.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <sys/asoundlib.h> #include <sys/asoundlib.h>
#include <assert.h>
#include "aconfig.h" #include "aconfig.h"
#include "formats.h" #include "formats.h"
#include "version.h" #include "version.h"
@ -1173,6 +1174,8 @@ void playback_go(int fd, int loaded, u_long count, int rtype, char *name)
format_change = 1; format_change = 1;
set_format(); set_format();
assert(loaded < buffer_size);
while (count) { while (count) {
l = loaded; l = loaded;
loaded = 0; loaded = 0;