summaryrefslogtreecommitdiffstats
path: root/client/x11/platform.cpp
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-04-26 13:47:15 +0200
committerAlexander Larsson <alexl@redhat.com>2010-04-26 14:01:37 +0200
commite52974c7b46a17f74c6ab54eaadb8c4461e0d46f (patch)
tree9de6e47edfaf9605ebd6e872e7673f9d651c04f7 /client/x11/platform.cpp
parent16328d20357a8bc4630656af350772b0bd14f8f1 (diff)
downloadspice-e52974c7b46a17f74c6ab54eaadb8c4461e0d46f.tar.gz
spice-e52974c7b46a17f74c6ab54eaadb8c4461e0d46f.tar.xz
spice-e52974c7b46a17f74c6ab54eaadb8c4461e0d46f.zip
fix two warnings
Diffstat (limited to 'client/x11/platform.cpp')
-rw-r--r--client/x11/platform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp
index 33817e29..ea492edb 100644
--- a/client/x11/platform.cpp
+++ b/client/x11/platform.cpp
@@ -260,7 +260,7 @@ XImage *XPlatform::create_x_image(RedDrawable::Format format,
Visual *visual,
XShmSegmentInfo **shminfo_out)
{
- XImage *image;
+ XImage *image = NULL;
uint8_t *data;
size_t stride;