[v1.04][PPC] Small fix for jump or move depends on uninitialised value (noted in #178)

This commit is contained in:
Dr-Noob
2023-05-09 10:58:16 +02:00
parent 53e5dd19f7
commit bddf6cfe31

View File

@@ -233,6 +233,7 @@ int get_num_elements_from_files(char** paths, int num_paths) {
for(int j=0; j < num_bitmasks; j++) { for(int j=0; j < num_bitmasks; j++) {
char* end; char* end;
tmpbuf = emalloc(sizeof(char) * (strlen(buf) + 1)); tmpbuf = emalloc(sizeof(char) * (strlen(buf) + 1));
memset(tmpbuf, 0, sizeof(char) * (strlen(buf) + 1));
char* commaend = strstr(buf, ","); char* commaend = strstr(buf, ",");
if(commaend == NULL) { if(commaend == NULL) {
strcpy(tmpbuf, buf); strcpy(tmpbuf, buf);