diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-07-08 08:16:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-08 08:16:50 +0200 |
commit | af801820169865498f074ea9f155e680fc6db027 (patch) | |
tree | 552484a6f3a9336c344bcae53428c54345c0035b /modules/mono/utils/string_utils.cpp | |
parent | 17e9030e485e0b9147fa573d45ab71f606b3442b (diff) | |
parent | 9a77d748c0d4e1c3dceb40216b9a345073032361 (diff) |
Merge pull request #30407 from qarmin/small_fixess
Fixes minor issues found by static analyzer
Diffstat (limited to 'modules/mono/utils/string_utils.cpp')
-rw-r--r-- | modules/mono/utils/string_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/utils/string_utils.cpp b/modules/mono/utils/string_utils.cpp index 877122985d..2b014c2a45 100644 --- a/modules/mono/utils/string_utils.cpp +++ b/modules/mono/utils/string_utils.cpp @@ -44,7 +44,7 @@ int sfind(const String &p_text, int p_from) { int src_len = 2; int len = p_text.length(); - if (src_len == 0 || len == 0) + if (len == 0) return -1; const CharType *src = p_text.c_str(); |