i915g: Fix possible null pointer deference in debug builds.
authorVinson Lee <vlee@vmware.com>
Mon, 12 Apr 2010 01:07:41 +0000 (18:07 -0700)
committerVinson Lee <vlee@vmware.com>
Mon, 12 Apr 2010 01:07:41 +0000 (18:07 -0700)
commit8033d7542b37e92f9a79febbdf88b0573a65cfa5
tree4707bbe670824498335879bf48741d38f4d05fde
parent039e77a7d1e4650d6ef45562522ede2a43379499
i915g: Fix possible null pointer deference in debug builds.

i915_buffer deferences buf in debug builds. Move declaration and
assignment to inside NULL check of buf.
src/gallium/drivers/i915/i915_state.c