pixman-renderer: Initialize pixman-renderer struct with zeros

Othrewise a crash may happen because of an unitialized value of the
create_view field.
This commit is contained in:
Ander Conselvan de Oliveira 2013-10-25 16:26:31 +03:00 committed by Kristian Høgsberg
parent 7498758525
commit c68b1085ed
1 changed files with 1 additions and 1 deletions

View File

@ -660,7 +660,7 @@ pixman_renderer_init(struct weston_compositor *ec)
{
struct pixman_renderer *renderer;
renderer = malloc(sizeof *renderer);
renderer = calloc(1, sizeof *renderer);
if (renderer == NULL)
return -1;