[Spice-devel] [PATCH 07/12] server/inputs_channel: initialize inputs_channel to NULL

Hans de Goede hdegoede at redhat.com
Mon Dec 6 03:38:51 PST 2010


Ack.

Note this is not strictly necessary the C-standard says that uninitialized
*global* variables get set to 0.

On 12/06/2010 11:49 AM, Alon Levy wrote:
> ---
>   server/inputs_channel.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/server/inputs_channel.c b/server/inputs_channel.c
> index aeb3796..e4e75b7 100644
> --- a/server/inputs_channel.c
> +++ b/server/inputs_channel.c
> @@ -82,7 +82,7 @@ static SpiceTabletInstance *tablet = NULL;
>
>   static SpiceTimer *key_modifiers_timer;
>
> -static InputsChannel *inputs_channel;
> +static InputsChannel *inputs_channel = NULL;
>
>   #define KEY_MODIFIERS_TTL (1000 * 2) /*2sec*/
>


More information about the Spice-devel mailing list