X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2Fmarcdump.c;h=217feee71a0e36b14aa7ddac4f71cad8912884bc;hp=f41e3cd9644fa7d56fe4915723cd6b144f64b172;hb=bffff3b76a8401900e60096a587156a8bcbc03ef;hpb=5c8ffe664df674fe5f5331f6445019e6bfe13673 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);