projects
/
profile
/
ivi
/
eina.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
656e2da
)
Remove possivle null pointer.
author
tiago
<tiago>
Fri, 29 Oct 2010 17:19:15 +0000
(17:19 +0000)
committer
tiago
<tiago@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 29 Oct 2010 17:19:15 +0000
(17:19 +0000)
Reported in:
http://people.profusion.mobi/~lfelipe/static_analysis/efl/efl-53990/eina/2010-10-29-1/report-mqFB7z.html#EndPath
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@53998
7cbeb6ba
-43b4-40fd-8cce-
4c39aea84d33
src/lib/eina_stringshare.c
patch
|
blob
|
history
diff --git
a/src/lib/eina_stringshare.c
b/src/lib/eina_stringshare.c
index
83974b1
..
235ca60
100644
(file)
--- a/
src/lib/eina_stringshare.c
+++ b/
src/lib/eina_stringshare.c
@@
-657,7
+657,7
@@
eina_stringshare_add_length(const char *str, unsigned int slen)
{
DBG("str=%p (%.*s), slen=%u", str, slen, str ? str : "", slen);
- if (
slen <= 0
)
+ if (
(!str) || (slen <= 0)
)
return "";
else if (slen == 1)
return (const char *)_eina_stringshare_single + ((*str) << 1);