commit | b91c6a1209e7da1a7f989d9ac35d0d8be0b7b710 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Wed Oct 05 20:42:11 2016 -0600 |
committer | Bin Meng <bmeng.cn@gmail.com> | Tue Oct 11 11:55:33 2016 +0800 |
tree | d54528122107568533816e0e8629fd753a2bec24 | |
parent | a5b8722532729c62370b6abb278420804d5d071b [diff] |
Fix return value in trailing_strtoln() This function should return -1 if there is no trailing integer in the string. Instead it returns 0. Fix it by checking for this condition at the start. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>