Skip to content
Commit 841dc893 authored by Andrii Simiklit's avatar Andrii Simiklit Committed by Andres Gomez
Browse files

mesa/util: don't ignore NULL returned from 'malloc'



We should exit from the function 'util_vasprintf'
with error code -1 for case where 'malloc'
returns NULL

Reviewed-by: default avatarEric Engestrom <eric.engestrom@intel.com>
Fixes: 864148d6 "util: add util_vasprintf() for Windows (v2)"
Signed-off-by: default avatarAndrii Simiklit <andrii.simiklit@globallogic.com>
(cherry picked from commit 65cfe698)
parent d55da359
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