[v0.89][ARM][BUGFIX] Fix obscure bug where cpufetch failed if cpuinfo did not start with "processor" string

This commit is contained in:
Dr-Noob
2020-11-24 15:20:07 +01:00
parent 0bc978564e
commit 5d168f5707

View File

@@ -73,7 +73,7 @@ uint32_t get_midr_from_cpuinfo(uint32_t core, bool* success) {
return 0;
}
char* tmp = buf;
char* tmp = strstr(buf, CPUINFO_CPU_STRING);
uint32_t current_core = 0;
while(core != current_core && tmp != NULL) {
tmp++;