[Spice-devel] [PATCH 3/5] server/tests/test_display_base: fix segfault in test

Christophe Fergeau cfergeau at redhat.com
Tue Oct 23 02:01:13 PDT 2012


ACK

On Fri, Oct 19, 2012 at 01:50:10PM +0200, Alon Levy wrote:
> ---
>  server/tests/test_display_base.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c
> index 8c7f512..588e960 100644
> --- a/server/tests/test_display_base.c
> +++ b/server/tests/test_display_base.c
> @@ -703,7 +703,11 @@ static int flush_resources(QXLInstance *qin)
>  
>  static void client_monitors_config(QXLInstance *qin, VDAgentMonitorsConfig *monitors_config)
>  {
> -    printf("%s: %d\n", __func__, monitors_config->num_of_monitors);
> +    if (!monitors_config) {
> +        printf("%s: NULL monitors_config\n", __func__);
> +    } else {
> +        printf("%s: %d\n", __func__, monitors_config->num_of_monitors);
> +    }
>  }
>  
>  QXLInterface display_sif = {
> -- 
> 1.7.12.1
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20121023/cbadc1b9/attachment.pgp>


More information about the Spice-devel mailing list