From 264aca483ec489accbc0bbea85547be6332fdc19 Mon Sep 17 00:00:00 2001 From: Herman Chen Date: Mon, 30 Aug 2021 10:05:26 +0800 Subject: [PATCH] [utils]: Remove extra NULL option print Change-Id: I48871d7af4fae0fdf3e6e405793e53a5e4768801 Signed-off-by: Herman Chen --- utils/utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/utils.c b/utils/utils.c index e11ab15e..c7ed708a 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -28,6 +28,9 @@ void _show_options(int count, OptionInfo *options) { int i; for (i = 0; i < count; i++) { + if (NULL == options[i].name) + continue; + mpp_log("-%s %-16s\t%s\n", options[i].name, options[i].argname, options[i].help); }