From: Jihye Won Date: Fri, 13 Nov 2015 02:06:34 +0000 (+0900) Subject: qt5_msgbox: fix condition for checking empty message X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~168 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4fad9c4d331053a11ee309c13471255ea50c6526;p=sdk%2Femulator%2Fqemu.git qt5_msgbox: fix condition for checking empty message 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 --- diff --git a/tizen/src/util/qt5_error_report.c b/tizen/src/util/qt5_error_report.c index dacc5a1614..e3ff10c3ac 100644 --- a/tizen/src/util/qt5_error_report.c +++ b/tizen/src/util/qt5_error_report.c @@ -67,8 +67,8 @@ void start_qt5_msgbox(qt5_msgbox_icon icon, const char *message) { 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; }