Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: Weird statement
Home

[Freeciv-Dev] Re: Weird statement

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx (Freeciv developers)
Subject: [Freeciv-Dev] Re: Weird statement
From: Reinier Post <rp@xxxxxxxxxx>
Date: Sun, 26 Aug 2001 14:23:13 +0200

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


[Prev in Thread] Current Thread [Next in Thread]