It is simple way to check whether message[1] is NULL
instead of checking the length of the message is 1.
Also, the level of error log is changed from ERROR into WARN.
Change-Id: I9f65e7ed037ee92fcb017255455e2e68dbc45cfa
Signed-off-by: Jihye Won <jihye.won1@samsung.com>
{
INFO("qt5_msgbox starts... \n");
- if (message[0] == '\n' && strnlen(message, MAX_MESSAGE_LEN) == 1) {
- ERR("The message has only a new-line character. \n" );
+ if (message[0] == '\n' && message[1] == '\0') {
+ WARN("The message has only a new-line character. \n" );
return;
}