Skip to content

Commit

Permalink
MSAN fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ShabbyX authored and charles-lunarg committed Sep 8, 2023
1 parent e95fee0 commit a145cbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion loader/loader_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ VkResult linux_read_sorted_physical_devices(struct loader_instance *inst, uint32
bool device_is_1_1_capable =
loader_check_version_meets_required(LOADER_VERSION_1_1_0, loader_make_version(dev_props.apiVersion));
if (!sorted_device_info[index].has_pci_bus_info) {
uint32_t ext_count;
uint32_t ext_count = 0;
icd_term->dispatch.EnumerateDeviceExtensionProperties(sorted_device_info[index].physical_device, NULL, &ext_count,
NULL);
if (ext_count > 0) {
Expand Down
2 changes: 1 addition & 1 deletion loader/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ uint32_t loader_get_global_debug_level(void) { return g_loader_debug; }

void loader_log(const struct loader_instance *inst, VkFlags msg_type, int32_t msg_code, const char *format, ...) {
(void)msg_code;
char msg[512];
char msg[512] = {0};

va_list ap;
va_start(ap, format);
Expand Down

0 comments on commit a145cbe

Please sign in to comment.