mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
Fixed memory leaks and unitialized variables
This commit is contained in:
@@ -3,7 +3,11 @@
|
||||
#include "extended.h"
|
||||
|
||||
char* getString_CPUName() {
|
||||
unsigned eax, ebx, ecx, edx;
|
||||
unsigned eax = 0;
|
||||
unsigned ebx = 0;
|
||||
unsigned ecx = 0;
|
||||
unsigned edx = 0;
|
||||
|
||||
char name[64];
|
||||
memset(name,0,64);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user