bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-inetutils] telnet bug: will_wont_resp is not initialized


From: Simon Josefsson
Subject: Re: [bug-inetutils] telnet bug: will_wont_resp is not initialized
Date: Wed, 22 Aug 2012 13:19:25 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/23.3 (gnu/linux)

Petr Malát <address@hidden> writes:

> -char options[256];           /* The combined options */
> -char do_dont_resp[256];
> -char will_wont_resp[256];
> +char options[256] = { 0 };           /* The combined options */
> +char do_dont_resp[256] = { 0 };
> +char will_wont_resp[256] = { 0 };

This seems weird and should be a no-op -- global static variables should
be initialized to zero by the compiler.

/Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]