diff options
author | Gentaiii <vrekmakerq@gmail.com> | 2022-10-11 09:36:36 +0000 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-10-11 09:36:36 +0000 |
commit | 11192e69308ff48c0f3ec40fb572c4e8e4ad13d8 (patch) | |
tree | 7fea21fc147e5f2d934a505962d1f52ab2bd2416 | |
parent | 221ee83d440fb7dcbfd141ef3a459a5a973331b6 (diff) |
Fixed false allocation failed
-rw-r--r-- | render/vulkan/vulkan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/vulkan/vulkan.c b/render/vulkan/vulkan.c index cbd1035c..7f8eb580 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; } |