[cli] Fix parsing of commands with trailing whitespaces.
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 11 Apr 2009 13:59:30 +0000 (15:59 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 11 Apr 2009 13:59:30 +0000 (15:59 +0200)
commitb51a52efb7e8f708f1c0f4df28b31593001c6c3a
tree2f5d5dfdc56668bbd519c028923d157f745f50df
parent2c9183ef7ef9d3e1f553a179ab0c01aed4001da4
[cli] Fix parsing of commands with trailing whitespaces.

  * A trailing whitespace was parsed as empty command, resulting
    in a segfault when trying to execute it.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>
cli/command.c
cli/core.c
cli/option.c
cli/option.h
include/libvsccli/command.h