mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-23 05:24:46 -07:00
Fix PVS warnings (#4277)
* Fixing PVS warns * pvs: additional fixes --------- Co-authored-by: hedger <hedger@nanode.su>
This commit is contained in:
@@ -293,7 +293,7 @@ static void rpc_system_storage_list_process(const PB_Main* request, void* contex
|
||||
finish = true;
|
||||
}
|
||||
|
||||
while(!finish) {
|
||||
while(!finish) { //-V1044
|
||||
FileInfo fileinfo;
|
||||
char* name = malloc(MAX_NAME_LENGTH + 1);
|
||||
if(storage_dir_read(dir, &fileinfo, name, MAX_NAME_LENGTH)) {
|
||||
|
||||
@@ -30,7 +30,8 @@ static void rpc_system_system_ping_process(const PB_Main* request, void* context
|
||||
}
|
||||
|
||||
PB_Main response = PB_Main_init_default;
|
||||
response.command_status = PB_CommandStatus_OK;
|
||||
// PB_CommandStatus_OK is 0 in current case, and var by default is 0 too, commenting PVS warn
|
||||
response.command_status = PB_CommandStatus_OK; //-V1048
|
||||
response.command_id = request->command_id;
|
||||
response.which_content = PB_Main_system_ping_response_tag;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user