about summary refs log tree commit diff
path: root/string/strchrnul.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/strchrnul.c')
-rw-r--r--string/strchrnul.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/string/strchrnul.c b/string/strchrnul.c
index 5a1af13c5b..052fb042fc 100644
--- a/string/strchrnul.c
+++ b/string/strchrnul.c
@@ -126,11 +126,11 @@ STRCHRNUL (const char *s, int c_in)
 	   /* Look at only the hole bits.  If any of the hole bits
 	      are unchanged, most likely one of the bytes was a
 	      zero.  */
-	   & ~magic_bits) != 0 ||
+	   & ~magic_bits) != 0
 
 	  /* That caught zeroes.  Now test for C.  */
-	  ((((longword ^ charmask) + magic_bits) ^ ~(longword ^ charmask))
-	   & ~magic_bits) != 0)
+	  || ((((longword ^ charmask) + magic_bits) ^ ~(longword ^ charmask))
+	      & ~magic_bits) != 0)
 	{
 	  /* Which of the bytes was C or zero?
 	     If none of them were, it was a misfire; continue the search.  */