eolian: clean up unnecessary logic in eolian_documentation_string_split

Fixes CID1366824.
This commit is contained in:
Daniel Kolesa 2016-12-08 13:53:03 +01:00
parent 6f6323d12e
commit 7df8625c40
1 changed files with 3 additions and 1 deletions

View File

@ -216,9 +216,11 @@ EAPI Eina_List *
eolian_documentation_string_split(const char *doc)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(doc, NULL);
if (!doc[0])
return NULL;
const char *sep = strstr(doc, "\n\n");
Eina_List *ret = NULL;
while (doc)
for (;;)
{
Eina_Strbuf *buf = eina_strbuf_new();
if (sep)