News for hackers. Stuff that matters.
Re:Curl doesn’t spew binary anymore by tonmoy on Saturday June 17, 2017 @12:06PM (#14576435)
I think putting the memchr() in the same if would cause unnecessary calling of the memch() function (and scanning of 2000 bytes) even when any of the other conditions is false! It will work great on a language like ruby, not C.
Re:Curl doesn’t spew binary anymore by userbinator on Saturday June 17, 2017 @12:28PM (#14576523)
C && is short-circuit-evaluated. Something like 'if (y && (k = x/y))' won't crash if y is 0.