summaryrefslogtreecommitdiff
path: root/src/vaapi-recorder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vaapi-recorder.c')
-rw-r--r--src/vaapi-recorder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vaapi-recorder.c b/src/vaapi-recorder.c
index 921494df..a4693912 100644
--- a/src/vaapi-recorder.c
+++ b/src/vaapi-recorder.c
@@ -951,8 +951,8 @@ vaapi_recorder_create(int drm_fd, int width, int height, const char *filename)
int major, minor;
int flags;
- r = calloc(1, sizeof *r);
- if (!r)
+ r = zalloc(sizeof *r);
+ if (r == NULL)
return NULL;
r->width = width;