i915g: Don't forget to init buffer ptrs
authorJakob Bornecrantz <jakob@vmware.com>
Fri, 28 Aug 2009 21:33:42 +0000 (22:33 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Fri, 28 Aug 2009 21:41:52 +0000 (22:41 +0100)
src/gallium/winsys/drm/intel/gem/intel_be_device.c

index f58334ffffa4e64f454b92afc018cd76acc66ffc..2d8e9f1a24ea6b740aa635dfb7653d5bc1b6dbdc 100644 (file)
@@ -286,7 +286,7 @@ intel_be_shared_handle_from_texture(struct drm_api *api,
                                     unsigned *pitch,
                                     unsigned *handle)
 {
-       struct pipe_buffer *buffer;
+       struct pipe_buffer *buffer = NULL;
        struct intel_be_buffer *buf;
        if (!intel_be_get_texture_buffer(api,
                                         texture,
@@ -315,7 +315,7 @@ intel_be_local_handle_from_texture(struct drm_api *api,
                                    unsigned *pitch,
                                    unsigned *handle)
 {
-       struct pipe_buffer *buffer;
+       struct pipe_buffer *buffer = NULL;
        if (!intel_be_get_texture_buffer(api,
                                         texture,
                                         &buffer,