mirror of https://github.com/xzeldon/htop.git
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