summaryrefslogtreecommitdiff
path: root/compat/regex/regex_internal.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2025-03-27 11:52:58 +0000
committerJunio C Hamano <gitster@pobox.com>2025-03-28 17:38:10 -0700
commit324fbaab88126196bd42e7fa383ee94e165d61b5 (patch)
tree780dd9064ddc50c7fed47bd888dd2012201de3ee /compat/regex/regex_internal.c
parent0fbbb2c9f595a8460a7fd7c72d4e95081eb96b08 (diff)
xdiff: avoid using the comma operator unnecessarily
The comma operator is a somewhat obscure C feature that is often used by mistake and can even cause unintentional code flow. While the code in this patch used the comma operator intentionally (to avoid curly brackets around two statements, each, that want to be guarded by a condition), it is better to surround it with curly brackets and to use a semicolon instead. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Acked-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/regex/regex_internal.c')
0 files changed, 0 insertions, 0 deletions