projects
/
platform
/
core
/
appfw
/
widget-viewer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c970b56
)
Check the length of content string.
author
Sung-jae Park
<nicesj.park@samsung.com>
Wed, 11 Sep 2013 10:14:43 +0000
(19:14 +0900)
committer
Sung-jae Park
<nicesj.park@samsung.com>
Wed, 11 Sep 2013 10:14:43 +0000
(19:14 +0900)
If it has ZERO length, use the default content info if it exists.
Change-Id: I14eeb9a991cc5f2e4d5b8bfa572fdd3f587c078f
src/livebox.c
patch
|
blob
|
history
diff --git
a/src/livebox.c
b/src/livebox.c
index
0b5ddcd
..
fe23d5c
100644
(file)
--- 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));