You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@httpd.apache.org by GitBox <gi...@apache.org> on 2020/12/15 12:17:14 UTC

[GitHub] [httpd] ylavic commented on pull request #160: fix assignment instead of comparison

ylavic commented on pull request #160:
URL: https://github.com/apache/httpd/pull/160#issuecomment-745252037


   The code is admittedly not the clearest one, but its point is to assign the result of `prefix ? ... : ...` to both `name` **and** `names->elts[capture]` (cast omitted here).
   The local variable/pointer `name` is to cache the result and avoid using an indirect addressing (`names->elts[capture]`) twice in the same block (uppercasing below).
   That's valid `C` at least...


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@httpd.apache.org
For additional commands, e-mail: notifications-help@httpd.apache.org