Make string comparison legible and remove buffer overrun introduced by typo.

llvm-svn: 50714
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index 4a20fbec..455ac78 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -530,8 +530,8 @@
   // "initXXX": pass-through for receiver.
 
   const char* s = S.getIdentifierInfoForSlot(0)->getName();
-    
-  if (s[0] == 'i' && s[10] == 'n' && s[2] == 'i' && s[3] == 't')
+  
+  if (!strncmp(s, "init", 4))
     return getInitMethodSummary(S);
 
   return 0;