From: Seonah Moon Date: Wed, 26 Dec 2018 08:44:54 +0000 (+0900) Subject: Add code for handling NULL exception X-Git-Tag: submit/tizen/20181227.001142^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=678d649e026db11d34f1530b2ab8448c12a3d72d;p=platform%2Fupstream%2Fconnman.git Add code for handling NULL exception Change-Id: I5b3ae0a5305db81aeba848e5d7353ca44522f35c --- diff --git a/src/log.c b/src/log.c index fa8ac31f..28812ea5 100755 --- a/src/log.c +++ b/src/log.c @@ -314,6 +314,9 @@ static void print_backtrace(unsigned int offset) buf[len] = '\0'; pos = strchr(buf, '\n'); +#if defined TIZEN_EXT + if (pos) { +#endif *pos++ = '\0'; if (strcmp(buf, "??") == 0) { @@ -330,6 +333,9 @@ static void print_backtrace(unsigned int offset) connman_error("#%-2u %p in %s() at %s", i - offset, frames[i], buf, pos); +#if defined TIZEN_EXT + } +#endif } connman_error("+++++++++++++++++++++++++++");