Kaynağa Gözat

Protect TextIsEqual from NULLs (#2121)

pull/2124/head
Luke Krasnoff 4 yıl önce
işlemeyi yapan: GitHub
ebeveyn
işleme
8ec5b2dc2f
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. +4
    -0
      src/rtext.c

+ 4
- 0
src/rtext.c Dosyayı Görüntüle

@ -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;

Yükleniyor…
İptal
Kaydet