Remove unnecessary strcpy and assignment

This commit is contained in:
Liam Minopulos 2019-02-28 08:56:45 +01:00
parent eacd10a1ec
commit 3c72170135

View File

@ -9,10 +9,7 @@
void errorCreate(ErrorConfig* c) {
memset(c, 0, sizeof(ErrorConfig));
c->custom_text = false;
c->major_code = 2000;
c->minor_code = 0;
strcpy((char*) &c->short_description, "");
strcpy((char*) &c->detailed_description, "");
c->module = 2000;
}
void errorClose(ErrorConfig* c) {