lib: __assert_fail: Remove M2-Planet workarounds.

* lib/mes/__assert_fail.c (__assert_fail): Use *file, *function.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2023-02-13 11:24:43 +01:00 committed by Janneke Nieuwenhuizen
parent 6bc6e8354e
commit 640bdd027b
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ void
__assert_fail (char const *msg, char const *file, unsigned line, __assert_fail (char const *msg, char const *file, unsigned line,
char const *function) char const *function)
{ {
if (file && file[0]) if (file && *file)
{ {
eputs (file); eputs (file);
eputs (":"); eputs (":");
@ -35,7 +35,7 @@ __assert_fail (char const *msg, char const *file, unsigned line,
eputs (itoa (line)); eputs (itoa (line));
eputs (":"); eputs (":");
} }
if (function && function[0]) if (function && *function)
{ {
eputs (function); eputs (function);
eputs (":"); eputs (":");