mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-06 11:22:15 +02:00
Remove unnecessary strcpy and assignment
This commit is contained in:
parent
eacd10a1ec
commit
3c72170135
@ -9,10 +9,7 @@
|
|||||||
void errorCreate(ErrorConfig* c) {
|
void errorCreate(ErrorConfig* c) {
|
||||||
memset(c, 0, sizeof(ErrorConfig));
|
memset(c, 0, sizeof(ErrorConfig));
|
||||||
c->custom_text = false;
|
c->custom_text = false;
|
||||||
c->major_code = 2000;
|
c->module = 2000;
|
||||||
c->minor_code = 0;
|
|
||||||
strcpy((char*) &c->short_description, "");
|
|
||||||
strcpy((char*) &c->detailed_description, "");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void errorClose(ErrorConfig* c) {
|
void errorClose(ErrorConfig* c) {
|
||||||
|
Loading…
Reference in New Issue
Block a user