We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 460021b commit fd0fcbaCopy full SHA for fd0fcba
src/libstd/str.rs
@@ -1107,8 +1107,8 @@ pub mod raw {
1107
Some(limit) => (true, limit),
1108
None => (false, 0)
1109
};
1110
- while(*(curr_ptr as *libc::c_char) != 0 as libc::c_char
1111
- && ((limited_count && ctr < limit) || !limited_count)) {
+ while(((limited_count && ctr < limit) || !limited_count)
+ && *(curr_ptr as *libc::c_char) != 0 as libc::c_char) {
1112
let env_pair = from_c_str(
1113
curr_ptr as *libc::c_char);
1114
result.push(env_pair);
0 commit comments