Skip to content
Commit 2e903df7 authored by Vlad Golovkin's avatar Vlad Golovkin Committed by Andres Gomez
Browse files

swr: Remove unnecessary memset call



Zeroing memory after calloc is not necessary. This also allows to avoid
possible crash when allocation fails, because memset is called before
checking screen for NULL.

Fixes: a29d63ec "swr: refactor swr_create_screen to allow
                              for proper cleanup on error"
Reviewed-by: default avatarEric Engestrom <eric.engestrom@intel.com>
(cherry picked from commit 9d3a2394)
parent cb542ac5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment