mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-11-12 23:07:21 +00:00
[common] use variable-relative sizeof where possible
This commit is contained in:
committed by
Geoffrey McRae
parent
982b4e6625
commit
1c5620ba25
@@ -49,7 +49,7 @@ static void TimerProc(union sigval arg)
|
||||
bool lgCreateTimer(const unsigned int intervalMS, LGTimerFn fn,
|
||||
void * udata, LGTimer ** result)
|
||||
{
|
||||
LGTimer * ret = malloc(sizeof(LGTimer));
|
||||
LGTimer * ret = malloc(sizeof(*ret));
|
||||
|
||||
if (!ret)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user