From: Sung-jae Park Date: Wed, 11 Sep 2013 10:15:55 +0000 (+0900) Subject: Check the length of content string. X-Git-Tag: accepted/tizen/20131022.083701^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a48f8e69a3a9d179c56661b6528e4f7fbb4e941;hp=386ead03793ce5570fc2a0f1d38f61d69b2a908c;p=platform%2Fframework%2Fweb%2Flivebox-viewer.git Check the length of content string. If it is zero length string, use the default content if exists. Change-Id: Ib122bfb0ce82d9ebb25a94aa81580550f9923053 --- diff --git a/src/livebox.c b/src/livebox.c index 0b5ddcd..fe23d5c 100644 --- a/src/livebox.c +++ b/src/livebox.c @@ -737,7 +737,7 @@ EAPI struct livebox *livebox_add_with_size(const char *pkgname, const char *cont return NULL; } - if (content) { + if (content && strlen(content)) { handler->content = strdup(content); if (!handler->content) { ErrPrint("Error: %s\n", strerror(errno));