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:
Olivier Fourdan 2019-10-31 09:04:19 +01:00
parent 0e9a0c203c
commit 2c5acdef3a
1 changed files with 1 additions and 1 deletions

View File

@ -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;