Initialize buff in case read doesn't do it. (But I'm no sure why the

read isn't doing this properly.)
This commit is contained in:
rocky
2005-01-07 02:40:57 +00:00
parent 90f235fb44
commit 7c2bc5e889

View File

@@ -1,5 +1,5 @@
/*
$Id: common_interface.c,v 1.4 2005/01/06 03:09:11 rocky Exp $
$Id: common_interface.c,v 1.5 2005/01/07 02:40:57 rocky Exp $
Copyright (C) 2004 Rocky Bernstein <rocky@panix.com>
Copyright (C) 1998, 2002 Monty monty@xiph.org
@@ -44,6 +44,8 @@ data_bigendianp(cdrom_drive_t *d)
long readsectors=5;
int16_t *buff=malloc(readsectors*CDIO_CD_FRAMESIZE_RAW);
memset(buff, 0, readsectors*CDIO_CD_FRAMESIZE_RAW);
/* look at the starts of the audio tracks */
/* if real silence, tool in until some static is found */