Oops, fix use of memset.

This commit is contained in:
Hisham Muhammad 2014-04-24 19:44:41 -03:00
parent 659251c501
commit 814ce89b45
1 changed files with 1 additions and 1 deletions

View File

@ -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;