mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 16:00:39 +01:00
[v1.04][PPC] Small fix for jump or move depends on uninitialised value (noted in #178)
This commit is contained in:
@@ -233,6 +233,7 @@ int get_num_elements_from_files(char** paths, int num_paths) {
|
||||
for(int j=0; j < num_bitmasks; j++) {
|
||||
char* end;
|
||||
tmpbuf = emalloc(sizeof(char) * (strlen(buf) + 1));
|
||||
memset(tmpbuf, 0, sizeof(char) * (strlen(buf) + 1));
|
||||
char* commaend = strstr(buf, ",");
|
||||
if(commaend == NULL) {
|
||||
strcpy(tmpbuf, buf);
|
||||
|
||||
Reference in New Issue
Block a user