mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user