mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
Oops, fix use of memset.
This commit is contained in:
parent
659251c501
commit
814ce89b45
@ -59,7 +59,7 @@ static unsigned long int parseBatInfo(const char *fileName, const unsigned short
|
||||
#define MAX_BATTERIES 64
|
||||
char* batteries[MAX_BATTERIES];
|
||||
unsigned int nBatteries = 0;
|
||||
memset(batteries, MAX_BATTERIES, sizeof (char*));
|
||||
memset(batteries, 0, MAX_BATTERIES * sizeof(char*));
|
||||
|
||||
struct dirent result;
|
||||
struct dirent* dirEntry;
|
||||
|
Loading…
Reference in New Issue
Block a user