mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-16 04:18:11 +00:00
[client] use variable-relative sizeof where possible
This commit is contained in:

committed by
Geoffrey McRae

parent
1c5620ba25
commit
14ad83c6b8
@@ -198,7 +198,7 @@ struct LG_OverlayOps LGOverlayGraphs =
|
||||
|
||||
GraphHandle overlayGraph_register(const char * name, RingBuffer buffer, float min, float max)
|
||||
{
|
||||
struct OverlayGraph * graph = malloc(sizeof(struct OverlayGraph));
|
||||
struct OverlayGraph * graph = malloc(sizeof(*graph));
|
||||
graph->name = name;
|
||||
graph->buffer = buffer;
|
||||
graph->enabled = true;
|
||||
|
Reference in New Issue
Block a user