Skip to content

Commit

Permalink
BadUSB: mask pvs studio warning for valid code
Browse files Browse the repository at this point in the history
  • Loading branch information
skotopes committed Feb 8, 2023
1 parent 2ffb172 commit 34943bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/main/bad_usb/bad_usb_script.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ void bad_usb_script_set_keyboard_layout(BadUsbScript* bad_usb, FuriString* layou
}

File* layout_file = storage_file_alloc(furi_record_open(RECORD_STORAGE));
if(!furi_string_empty(layout_path)) {
if(!furi_string_empty(layout_path)) { //-V1051
if(storage_file_open(
layout_file, furi_string_get_cstr(layout_path), FSAM_READ, FSOM_OPEN_EXISTING)) {
uint16_t layout[128];
Expand Down

0 comments on commit 34943bf

Please sign in to comment.