]> granicus.if.org Git - transmission/commitdiff
(trunk libT) #3867 "memmem(3) in Solaris 11 doesn't work as expected" -- fixed.
authorCharles Kerr <charles@transmissionbt.com>
Sun, 2 Jan 2011 07:56:20 +0000 (07:56 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Sun, 2 Jan 2011 07:56:20 +0000 (07:56 +0000)
libtransmission/utils-test.c

index 1d460f5b6f31820ed09d95d335971c721c34e886..34bc1cfc96a84a16294d05dedd6f79f83c4edce9 100644 (file)
@@ -293,9 +293,6 @@ test_memmem( void )
     check( tr_memmem( haystack, sizeof haystack, haystack, sizeof haystack) == haystack )
     check( tr_memmem( haystack, sizeof haystack, needle, sizeof needle) == haystack + 2 )
     check( tr_memmem( needle, sizeof needle, haystack, sizeof haystack) == NULL )
-    check( tr_memmem( haystack, sizeof haystack, "", 0) == haystack )
-    check( tr_memmem( haystack, sizeof haystack, NULL, 0) == haystack )
-    check( tr_memmem( haystack, 0, "", 0) == haystack )
 
     return 0;
 }