elflink: handle the NULL return of edit_cmdline
authorLiu Aleaxander <Aleaxander@gmail.com>
Tue, 15 Mar 2011 20:55:09 +0000 (20:55 +0000)
committerMatt Fleming <matt.fleming@linux.intel.com>
Tue, 15 Mar 2011 21:16:32 +0000 (21:16 +0000)
commit1c5f52052c2452c159498fb1beb941d3b40d4661
treed97837778c11a9feaf29706c597c5f3ba18cba83
parent819e5888d7b32244b823df2e0e4f7ee676d31b4b
elflink: handle the NULL return of edit_cmdline

When use ctrl-c to cancle the current input, the edit_cmdline
function will return a NULL string. While, the called didn't
handle that case, and an error would be happened.

Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
com32/elflink/ldlinux/ldlinux.c