[Freeciv-Dev] Re: Weird statement
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sun, Aug 26, 2001 at 09:34:58AM +0200, Raimar Falke wrote:
>
> Searching for a solution to the "allow comments in every server
> command" problem I found this one: server/stdinhand.c
>
> /* commands may be prefixed with SERVER_COMMAND_PREFIX,
> even when given on the server command line - rp */
>
> if (*cptr_s == SERVER_COMMAND_PREFIX) cptr_s++;
>
> for(cptr_s=str; *cptr_s && !isalnum(*cptr_s); cptr_s++);
>
> The if has no effect since the first statement of the for loop
> "cptr_s=str" overwrites it. Correct?!
Yes.
--
Reinier
|
|