mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Commit 52e0d0db4460d90172e9bd45b9ef30e7f4f75ae7 introduced regression as code may access buf[0 - 1]. Reorder code to first remove '\n' and then check buffer size for empty.