OSDN Git Service

glx: Put null check before use
authornobled <nobled@dreamwidth.org>
Thu, 19 Aug 2010 18:06:21 +0000 (14:06 -0400)
committerEric Anholt <eric@anholt.net>
Sat, 12 Feb 2011 02:19:10 +0000 (18:19 -0800)
commitb5dc40710d0e5edffb9f673dfbf26df4d0043eef
tree94571ea6e53cbe459dae5862e64a018d941355f7
parentdf54b53b7d12a3bca5867b6649cb308feb36f0da
glx: Put null check before use

'dpy' was being checked for null *after* it was already used once.

Also add a null check for psc, and drop gc's redundant initialization.
src/glx/glxcmds.c