[Spice-devel] [PATCH 3/5] server/tests/test_display_base: fix segfault in test
Alon Levy
alevy at redhat.com
Fri Oct 19 04:50:10 PDT 2012
---
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
More information about the Spice-devel
mailing list