zephyr/subsys/shell
Pisit Sawangvonganan f6f8c3f9b7 shell: correct z_shell_spaces_trim when len equal to zero
Addresses a potential issue when the string contains only '\0',
which results in z_shell_strlen(str) returning len as 0.
Since the for-loop expects len >= 1, the function now immediately
returns when len == 0.
As the null check for 'str' is already handled inside
z_shell_strlen(), an additional check for 'str' is not needed.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2023-12-12 15:02:58 +01:00
..
backends shell: telnet: Don't close the connection on EAGAIN error 2023-12-12 10:57:49 +01:00
modules
CMakeLists.txt
Kconfig
Kconfig.template.shell_log_queue_size
Kconfig.template.shell_log_queue_timeout
shell_cmds.c shell: fix shell instance name typo 2023-12-05 10:44:56 -05:00
shell_fprintf.c
shell_help.c
shell_help.h
shell_history.c
shell_log_backend.c shell: fix a memory corruption coverity issue 2023-10-13 13:11:28 +03:00
shell_ops.c
shell_ops.h
shell_utils.c shell: correct z_shell_spaces_trim when len equal to zero 2023-12-12 15:02:58 +01:00
shell_utils.h
shell_vt100.h
shell_wildcard.c
shell_wildcard.h
shell.c shell: add new APIs to get the backend instances 2023-10-25 09:57:29 +02:00