Commit 814ce89b authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Oops, fix use of memset.

parent 659251c5
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment