From 2cfe722a2161447401444ee3a5be2753598c4c52 Mon Sep 17 00:00:00 2001 From: rocky Date: Mon, 22 Mar 2004 01:01:50 +0000 Subject: [PATCH] Compilation fix: declarations need to come before statements for gcc < 3.0. --- lib/image/bincue.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/image/bincue.c b/lib/image/bincue.c index 24847fb4..063f0581 100644 --- a/lib/image/bincue.c +++ b/lib/image/bincue.c @@ -1,5 +1,5 @@ /* - $Id: bincue.c,v 1.8 2004/03/20 22:46:57 rocky Exp $ + $Id: bincue.c,v 1.9 2004/03/22 01:01:50 rocky Exp $ Copyright (C) 2001 Herbert Valerio Riedel Copyright (C) 2002, 2003, 2004 Rocky Bernstein @@ -24,7 +24,7 @@ (*.cue). */ -static const char _rcsid[] = "$Id: bincue.c,v 1.8 2004/03/20 22:46:57 rocky Exp $"; +static const char _rcsid[] = "$Id: bincue.c,v 1.9 2004/03/22 01:01:50 rocky Exp $"; #include "cdio_assert.h" #include "cdio_private.h" @@ -959,8 +959,6 @@ cdio_open_cue (const char *cue_name) _img_private_t *_data; char *bin_name; - if (NULL == cue_name) return NULL; - cdio_funcs _funcs = { .eject_media = cdio_generic_bogus_eject_media, .free = _cdio_bincue_destroy, @@ -984,6 +982,8 @@ cdio_open_cue (const char *cue_name) .stat_size = _cdio_stat_size }; + if (NULL == cue_name) return NULL; + _data = _cdio_malloc (sizeof (_img_private_t)); (_data)->gen.init = false; (_data)->sector_2336 = false;