Skip to content

Commit

Permalink
Create coverity issue
Browse files Browse the repository at this point in the history
  • Loading branch information
scthunderbolt committed Feb 17, 2025
1 parent 6ccfe58 commit 47f1aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ifce/btrMgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -3442,7 +3442,7 @@ static gboolean btrMgr_StartBatteryFirmwareUpgrade(gpointer user_data)
double FoundVer,CurrentVer;
gboolean FileFound = FALSE;

memset(CurrentVersion,'\0',sizeof(CurrentVersion));
memset(CurrentVersion,'\0', 10*sizeof(CurrentVersion));
memset(FoundVersion,'\0',sizeof(FoundVersion));
memset(val,'\0',sizeof(val));
memset(FileName,'\0',sizeof(FileName));
Expand Down

0 comments on commit 47f1aa7

Please sign in to comment.