summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e1fce93)
Change-Id: I45c41ee1aab082c79983dfd351e7fb3ebd6303d1
int lb_set_content(struct livebox *handler, const char *content)
{
if (handler->content) {
int lb_set_content(struct livebox *handler, const char *content)
{
if (handler->content) {
- DbgPrint("Release content: %s\n", content);
free(handler->content);
handler->content = NULL;
}
if (content) {
free(handler->content);
handler->content = NULL;
}
if (content) {
- DbgPrint("Update Content: [%s]\n", content);
handler->content = strdup(content);
if (!handler->content) {
CRITICAL_LOG("Heap: %s (content: %s)\n", strerror(errno), content);
handler->content = strdup(content);
if (!handler->content) {
CRITICAL_LOG("Heap: %s (content: %s)\n", strerror(errno), content);