From 11192e69308ff48c0f3ec40fb572c4e8e4ad13d8 Mon Sep 17 00:00:00 2001 From: Gentaiii Date: Tue, 11 Oct 2022 09:36:36 +0000 Subject: [PATCH] Fixed false allocation failed --- render/vulkan/vulkan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/vulkan/vulkan.c b/render/vulkan/vulkan.c index cbd1035c6..7f8eb580d 100644 --- a/render/vulkan/vulkan.c +++ b/render/vulkan/vulkan.c @@ -133,7 +133,7 @@ struct wlr_vk_instance *vulkan_instance_create(size_t ext_count, size_t extensions_len = 0; const char **extensions = calloc(1 + ext_count, sizeof(*extensions)); - if (extensions) { + if (!extensions) { wlr_log_errno(WLR_ERROR, "allocation failed"); goto error; }