[dpdk-dev] [PATCH v2] cmdline: check return value at initialization

2016-05-19 Thread Thomas Monjalon
2016-05-17 10:36, Olivier Matz: > From: Marcin Kerlin > > The value returned by rdline_init() was not checked in cmdline_new(). > On error, free the allocated memory and return NULL. > > This condition should not happen today, but it's safer to do the check > in case rdline_init() is updated. >

[dpdk-dev] [PATCH v2] cmdline: check return value at initialization

2016-05-17 Thread Olivier Matz
From: Marcin Kerlin The value returned by rdline_init() was not checked in cmdline_new(). On error, free the allocated memory and return NULL. This condition should not happen today, but it's safer to do the check in case rdline_init() is updated. Fixes: af75078fece3 ("first public release") Co