aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render/vulkan/vulkan.c2
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;
}