[host] use variable-relative sizeof where possible
This commit is contained in:
1 parent
c3f7327187
commit
982b4e6625
4 files changed
+10
-10
No files matched your search
@@ -133,7 +133,7 @@ bool NvFBCToSysCreate(
|
||||
return false;
|
||||
}
|
||||
|
||||
*handle = (NvFBCHandle)calloc(sizeof(struct stNvFBCHandle), 1);
|
||||
*handle = (NvFBCHandle)calloc(sizeof(**handle), 1);
|
||||
(*handle)->nvfbc = static_cast<NvFBCToSys *>(params.pNvFBC);
|
||||
|
||||
if (maxWidth)
|
||||
|
||||
Reference in new issue
Block a user