Commit e369b0f7 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(report_bad_aux): Don't declare variables in the middle of a function!

parent 3673e99e
/*
* $Id: text.c,v 0.102 2003/01/17 09:29:54 ceder Exp $
* $Id: text.c,v 0.103 2003/01/17 10:00:41 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -481,12 +481,13 @@ report_bad_aux(Text_no tno,
const char *reason)
{
static Text_no last = 0;
char *d;
if (tno == last)
return;
last = tno;
char *d = s_crea_c_str(*data);
d= s_crea_c_str(*data);
kom_log("Bad aux-item %d found in text %ld: \"%s\": %s.\n",
tag, (unsigned long)tno, d, reason);
string_free(d);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment