openbsd-ports/audio/xmms/patches/patch-Input_cdaudio_cdaudio_c

24 lines
756 B
Plaintext
Raw Normal View History

$OpenBSD: patch-Input_cdaudio_cdaudio_c,v 1.3 2004/04/15 19:23:46 naddy Exp $
--- Input/cdaudio/cdaudio.c.orig 2004-01-28 00:09:39.000000000 +0100
+++ Input/cdaudio/cdaudio.c 2004-04-15 14:47:46.000000000 +0200
@@ -333,7 +333,7 @@ static gboolean is_mounted(char * device
#elif defined(HAVE_GETMNTINFO)
entries = getmntinfo(&fsp, MNT_NOWAIT);
if (entries < 0)
- return NULL;
+ return FALSE;
while (entries-- > 0)
{
@@ -817,6 +817,10 @@ static int get_current_frame(void)
{
struct ioc_read_subchannel subchnl;
struct cd_sub_channel_info subinfo;
+
+ bzero (&subchnl, sizeof (subchnl));
+ bzero (&subinfo, sizeof (subinfo));
+
subchnl.address_format = CD_MSF_FORMAT;
subchnl.data_format = CD_CURRENT_POSITION;
subchnl.track = 0;