shared/shell: Fix scan-build error
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 30 Aug 2022 21:37:27 +0000 (14:37 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commitaf644381600004a05245322b282c458de2aab1e7
treed730d6cd48e8bd7b5f1816a96627fb3596878663
parent2e85ae8e9151533486fb54df21ba978fc195c693
shared/shell: Fix scan-build error

This fixes the following error:

src/shared/shell.c:1135:19: warning: Null pointer passed to 1st
parameter expecting 'nonnull'
                        data.timeout = atoi(optarg);
                                       ^~~~~~~~~~~~

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/shared/shell.c