mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
Fixed false allocation failed
This commit is contained in:
parent
221ee83d44
commit
11192e6930
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue