mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-20 22:01:49 -04:00
CLEANUP: htx: use ASSUME_NONNULL() to mark the start line as non-null
In http_replace_req_uri(), this assumption was previously made using ALREADY_CHECKED() but the new one is cleaner (and smaller, 24 bytes less).
This commit is contained in:
parent
a4f50c69e4
commit
143a103696
1 changed files with 2 additions and 2 deletions
|
|
@ -388,8 +388,8 @@ int http_replace_req_uri(struct htx *htx, const struct ist uri)
|
|||
if (!http_replace_stline(htx, meth, uri, vsn))
|
||||
goto fail;
|
||||
|
||||
sl = http_get_stline(htx);
|
||||
ALREADY_CHECKED(sl); /* the stline exists because http_replace_stline() succeeded */
|
||||
/* the stline exists because http_replace_stline() succeeded */
|
||||
sl = ASSUME_NONNULL(http_get_stline(htx));
|
||||
|
||||
sl->flags &= ~HTX_SL_F_NORMALIZED_URI;
|
||||
if (!http_update_host(htx, sl, uri))
|
||||
|
|
|
|||
Loading…
Reference in a new issue