lineedit: initialize delptr
authorShawn J. Goff <shawn7400@gmail.com>
Wed, 27 Feb 2013 17:30:05 +0000 (18:30 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 27 Feb 2013 17:30:05 +0000 (18:30 +0100)
commit46031da862a60422f80050a905cea0b67026b021
tree1967cd3785cdd1808bc1e1d76b07772177d48ef7
parent380c8a0763462692eef8d00df4872a561ff7aa7b
lineedit: initialize delptr

In vi mode, the 'p' and 'P' commands caused a segfault when nothing had
been put in the buffer yet because the delptr was not initialized.

Signed-off-by: Shawn J. Goff <shawn7400@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/lineedit.c