Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
e369b0f7
Commit
e369b0f7
authored
Jan 17, 2003
by
Per Cederqvist
Browse files
(report_bad_aux): Don't declare variables in the middle of a function!
parent
3673e99e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/text.c
View file @
e369b0f7
/*
* $Id: text.c,v 0.10
2
2003/01/17
09:29:54
ceder Exp $
* $Id: text.c,v 0.10
3
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment