mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-01-19 10:12:29 +00:00
[client] use variable-relative sizeof where possible
This commit is contained in:
committed by
Geoffrey McRae
parent
1c5620ba25
commit
14ad83c6b8
@@ -107,7 +107,7 @@ void waylandPresentationFrame(void)
|
||||
if (!wlWm.presentation)
|
||||
return;
|
||||
|
||||
struct FrameData * data = malloc(sizeof(struct FrameData));
|
||||
struct FrameData * data = malloc(sizeof(*data));
|
||||
if (clock_gettime(wlWm.clkId, &data->sent))
|
||||
{
|
||||
DEBUG_ERROR("clock_gettime failed: %s\n", strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user