diff options
author | Alejandro Colomar <alx@kernel.org> | 2024-04-23 12:41:08 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2024-06-18 22:59:43 +0200 |
commit | af6a67ffa0c5accb90126972116cb1e8e332f3b7 (patch) | |
tree | 863ed3a93d1506293220cf9c11c28e7902e8e2c3 /src/nxt_process_title.c | |
parent | 40eaf4e4f711978625ecbbdd359caa33d947ec8d (diff) | |
download | unit-af6a67ffa0c5accb90126972116cb1e8e332f3b7.tar.gz unit-af6a67ffa0c5accb90126972116cb1e8e332f3b7.tar.bz2 |
fs: Use branchless code in nxt_fs_mkdir_p()
That branch was to avoid an infinite loop on the slash. However, we can
achieve the same by using a +1 to make sure we advance at least 1 byte
in each iteration.
Tested-by: Andy Postnikov <apostnikov@gmail.com>
Tested-by: Andrew Clayton <a.clayton@nginx.com>
Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'src/nxt_process_title.c')
0 files changed, 0 insertions, 0 deletions