diff options
Diffstat (limited to 'src/vaapi-recorder.c')
-rw-r--r-- | src/vaapi-recorder.c | 4 |
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; |