From 3c721701350799d8e4cc24c5eac099109a41f0ca Mon Sep 17 00:00:00 2001 From: Liam Minopulos Date: Thu, 28 Feb 2019 08:56:45 +0100 Subject: [PATCH] Remove unnecessary strcpy and assignment --- nx/source/applets/error.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nx/source/applets/error.cpp b/nx/source/applets/error.cpp index f4341ff3..48638b18 100644 --- a/nx/source/applets/error.cpp +++ b/nx/source/applets/error.cpp @@ -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) {