* remove unnecessary assignments

This commit is contained in:
Timothy Bess
2018-03-17 12:58:10 -04:00
parent e91891625f
commit 06de920be6
-2
View File
@@ -373,7 +373,6 @@ pub extern "C" fn strtok_r(
// Skip past any extra delimiter left over from previous call
haystack = haystack.add(strspn(haystack, delimiter));
if *haystack == 0 {
haystack = ptr::null_mut();
*lasts = ptr::null_mut();
return ptr::null_mut();
}
@@ -386,7 +385,6 @@ pub extern "C" fn strtok_r(
haystack = haystack.add(1);
*lasts = haystack;
} else {
haystack = ptr::null_mut();
*lasts = ptr::null_mut();
}