edit-util: fix potentical crash when no edit markers
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 11 Mar 2023 08:38:03 +0000 (17:38 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 11 Mar 2023 13:19:22 +0000 (22:19 +0900)
commitaec8200b12bb8ebce2be87e0261e3a205eaa63d5
tree0182e45ac252a64f0a13be570ddf647e60df39a1
parentc629a5bc440e7852197ea0491a4da860b712836f
edit-util: fix potentical crash when no edit markers

This also makes trim_edit_markers() take EditFile as the argument.
src/shared/edit-util.c