diff options
author | AndyZhou <zhoumy@cn.fujitsu.com> | 2021-12-13 11:41:25 +0800 |
---|---|---|
committer | Zhou Mingying <zhoumy@cn.fujitsu.com> | 2021-12-21 05:46:23 +0000 |
commit | 18918978ba5c0f91f05513170c8ca57a93e96722 (patch) | |
tree | 72bc0170014508fd1c2b269788a5f03ab0b01a6d /shared/file-util.c | |
parent | 6371b14eb0abbb2398453919b024b088a15c6f6d (diff) |
agl-compositor:Add NULL check after zalloc in screenshooter.c
There's no NULL check in zalloc.
xdg_output is alloced by zalloc.
Add a NULL check after zalloc and before use xdg_output.
Bug-AGL: SPEC-4178
Signed-off-by: ZhouMingying <zhoumy@cn.fujitsu.com>
Change-Id: Idc2e3fd6be823c063a84868ba37b26ffe90db6fc
Diffstat (limited to 'shared/file-util.c')
0 files changed, 0 insertions, 0 deletions