Skip to content

Commit

Permalink
Use empty string for NULSTR
Browse files Browse the repository at this point in the history
  • Loading branch information
hensldm committed Jun 23, 2024
1 parent 96c14fd commit 03181c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/error/commonerror.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static OSLog errorLog = {
static void __commonErrorHandler(s16 code, s16 numArgs, ...);
OSErrorHandler __osCommonHandler = __commonErrorHandler;

char NULSTR[] = { '\0' };
char NULSTR[] = "";

const char* __os_error_message[] = {
NULSTR,
Expand Down
2 changes: 1 addition & 1 deletion src/error/kmcprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static void* kmc_proutSyncPrintf(void* str, const char* buf, int n) {
return (void*)1;
}

char NULSTR[] = { '\0' };
char NULSTR[] = "";

const char* __os_error_message[] = {
NULSTR,
Expand Down

0 comments on commit 03181c5

Please sign in to comment.