nouveau: fix potential NULL-ptr dereference in nouveau_stateobj.h
authorMaarten Maathuis <madman2003@gmail.com>
Fri, 6 Aug 2010 21:56:31 +0000 (23:56 +0200)
committerMaarten Maathuis <madman2003@gmail.com>
Fri, 6 Aug 2010 21:56:31 +0000 (23:56 +0200)
commita838cee6bc3a2e144c00f0a5f0a7791cd97037ab
tree1edb6103a9f5126ff19a26b8f455976bd3531767
parentd9f72b9f909b32ff0adacf939c75eb2924ed133b
nouveau: fix potential NULL-ptr dereference in nouveau_stateobj.h

- This can only be triggered when DEBUG_NOUVEAU_STATEOBJ is active.
- Also remove a redundant pointer assignment.

Reported-by: Roy Spliet <r.spliet@student.tudelft.nl>
Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
src/gallium/drivers/nouveau/nouveau_stateobj.h