[PATCH 3/4] app/testpmd: check for no arguments

Stephen Hemminger stephen at networkplumber.org
Thu Mar 12 18:03:17 CET 2026


On Thu, 12 Mar 2026 20:37:42 +0800
fengchengwen <fengchengwen at huawei.com> wrote:

> Hi Kevin,
> 
> On 3/12/2026 6:36 PM, Kevin Traynor wrote:
> > For the case where token is NULL, there are no arguments
> > and split_str[0] is used uninitialized.  
> 
> In which case the token is NULL, if there are no arguments, the cmdline's
> callback won't be invoke.
> 
> Thanks

It still maybe possible to get there with an empty string ""
which would evaluate to no arguments?


More information about the dev mailing list