xwayland/eglstream: Fix order of `calloc()` args
The definition by the manual is `calloc(size_t nmemb, size_t size)`. Swap the arguments of calloc() calls to match the definition. Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
This commit is contained in:
parent
0e9a0c203c
commit
2c5acdef3a
|
@ -910,7 +910,7 @@ xwl_glamor_init_eglstream(struct xwl_screen *xwl_screen)
|
|||
if (!dixRegisterPrivateKey(&xwl_eglstream_private_key, PRIVATE_SCREEN, 0))
|
||||
return;
|
||||
|
||||
xwl_eglstream = calloc(sizeof(*xwl_eglstream), 1);
|
||||
xwl_eglstream = calloc(1, sizeof(*xwl_eglstream));
|
||||
if (!xwl_eglstream) {
|
||||
ErrorF("Failed to allocate memory required to init EGLStream support\n");
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue