paleofetch

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 03e7bd719e32f22e7a0c41f1987dc30308703fac
parent cbbe1a7d190c71904c9067f1f3647f3726afdf31
Author: sam-barr <samfbarr@outlook.com>
Date:   Sun,  3 May 2020 19:40:52 -0500

get_cpu returns empty string when model name isn't present

Diffstat:
Mpaleofetch.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/paleofetch.c b/paleofetch.c @@ -437,6 +437,9 @@ cpufreq_fallback: free(cpu_model); truncate_spaces(cpu); + + if(num_cores == 0) + *cpu = '\0'; return cpu; }