Skip to content
Commit dbcc6dec authored by Vlad Golovkin's avatar Vlad Golovkin Committed by Dylan Baker
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 88b6d644
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