From bffff3b76a8401900e60096a587156a8bcbc03ef Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 18 Dec 2005 15:58:02 +0000 Subject: [PATCH] Avoid mixed stmt/vardeclare --- util/marcdump.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/util/marcdump.c b/util/marcdump.c index f41e3cd..217feee 100644 --- a/util/marcdump.c +++ b/util/marcdump.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: marcdump.c,v 1.34 2005-12-17 20:22:01 adam Exp $ + * $Id: marcdump.c,v 1.35 2005-12-18 15:58:02 adam Exp $ */ #define _FILE_OFFSET_BITS 64 @@ -252,8 +252,9 @@ int main (int argc, char **argv) if (split_fname) { char fname[256]; + FILE *sf; sprintf(fname, "%.200s%07d", split_fname, marc_no); - FILE *sf = fopen(fname, "wb"); + sf = fopen(fname, "wb"); if (!sf) { fprintf(stderr, "Could not open %s\n", fname); -- 1.7.10.4