瀏覽代碼
Protect TextIsEqual from NULLs (#2121)
pull/2124/head
Luke Krasnoff
3 年之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 4AEE18F83AFDEB23
共有
1 個文件被更改,包括
4 次插入 和
0 次删除
-
src/rtext.c
|
|
@ -1142,6 +1142,10 @@ bool TextIsEqual(const char *text1, const char *text2) |
|
|
|
{ |
|
|
|
bool result = false; |
|
|
|
|
|
|
|
if (text1 == NULL || text2 == NULL) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
if (strcmp(text1, text2) == 0) result = true; |
|
|
|
|
|
|
|
return result; |
|
|
|