mesa/util: don't ignore NULL returned from 'malloc'
authorAndrii Simiklit <andrii.simiklit@globallogic.com>
Thu, 6 Sep 2018 14:43:53 +0000 (17:43 +0300)
committerEric Engestrom <eric.engestrom@intel.com>
Thu, 6 Sep 2018 16:33:27 +0000 (17:33 +0100)
commit65cfe698b0f4ba412198d212c14481a60c1b8389
tree3353f859cea6a868a464679854cf28c1b520bf8a
parent570cacba7af165175ad40820c5e663db5b1c5066
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: Eric Engestrom <eric.engestrom@intel.com>
Fixes: 864148d69e1e "util: add util_vasprintf() for Windows (v2)"
Signed-off-by: Andrii Simiklit <andrii.simiklit@globallogic.com>
src/util/u_string.h