Follow-up Comment #1, patch #4803 (project freeciv):
I've not yet checked the code in question carefully, but note that at least
use of double braces "((" "))" around it indicates that assignment (single
"=") is there on purpose. With the limited context that is in the patch file
it also makes sense:
If strrchr() finds '/' in 'filepath', 'filename' points to character next to
that. If strrchr() does not find '/', but NULL gets assigned to 'filename'
(the "else" -branch) 'filename' then gets to point to beginning of the
'filepath'. It doesn't matter which value 'filename' had before entering that
Reply to this item at:
Message sent via/by Gna!
Freeciv-dev mailing list