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
block.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?4803>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to