Commit d244f3db authored by Dong Du's avatar Dong Du Committed by Anup Patel
Browse files

lib: sbi: Fix bug in strncmp function when count is 0



No need to compare characters when the count turns to 0.
Fix the issue in sbi_strncmp.

Signed-off-by: default avatarDong Du <Dd_nirvana@sjtu.edu.cn>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarAnup Patel <anup.patel@wdc.com>
parent e928472e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment