diff options
Diffstat (limited to 'modules/benchmark')
-rw-r--r-- | modules/benchmark/bench_results.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/benchmark/bench_results.c b/modules/benchmark/bench_results.c index 66140761..92790edb 100644 --- a/modules/benchmark/bench_results.c +++ b/modules/benchmark/bench_results.c @@ -58,7 +58,7 @@ static char *cpu_config_retranslate(char *str, int force_en, int replacing) { t, f, mhz ); free(new_str); new_str = tmp; - c = strchr(c+1, '+'); + c = strchr(c+1, '+'); if (c) c++; /* move past the + */ } } else { sscanf(c, "%f", &f); @@ -72,6 +72,7 @@ static char *cpu_config_retranslate(char *str, int force_en, int replacing) { if (replacing) free(str); } + return new_str; } @@ -84,7 +85,7 @@ static float cpu_config_val(char *str) { if (strchr(str, 'x')) { while (c != NULL && sscanf(c, "%dx %f", &t, &f) ) { r += f * t; - c = strchr(c+1, '+'); + c = strchr(c+1, '+'); if (c) c++; /* move past the + */ } } else { sscanf(c, "%f", &r); |