mesa/objectlabel: handle NULL src string
authorMark Janes <mark.a.janes@intel.com>
Tue, 3 May 2016 20:50:49 +0000 (13:50 -0700)
committerMark Janes <mark.a.janes@intel.com>
Tue, 3 May 2016 21:07:31 +0000 (14:07 -0700)
commit0af8a7d50ce0fdb8063f7fadd3b78975a2136d87
tree59ce0e5924d320158232526c6afb33b151168d4c
parent265fe9dce8727d8777153fa9846300051141a88e
mesa/objectlabel: handle NULL src string

This prevents a crash when a NULL src is passed with a non-NULL length.

fixes: dEQP-GLES31.functional.debug.object_labels.query_length_only
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95252

Signed-off-by: Mark Janes <mark.a.janes@intel.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/objectlabel.c