Rainer Jung wrote:

But the header could be shorter than the constant string. So there was a second problem with the old code, we eventually compared potentially uninitialized memory to string constants. Strictly speaking the result was not defined.


Sorry, but you get that wrong. At the beginning we have

size_t len = strlen(header_name);

So, we know in advance what the length is.
The double check with strcmp is overhead.

Regards,
Mladen

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to