renderer: protect against null debug name

macos/master
Dave Airlie 10 years ago
parent 57ca6830eb
commit 14b6e99bb1
  1. 2
      src/vrend_renderer.c

@ -3262,7 +3262,7 @@ struct vrend_context *vrend_create_context(int id, uint32_t nlen, const char *de
if (!grctx)
return NULL;
if (nlen) {
if (nlen && debug_name) {
strncpy(grctx->debug_name, debug_name, 64);
}

Loading…
Cancel
Save