Evas textblock: Removed useless alloca.
SVN revision: 61842
This commit is contained in:
parent
00047ce6c6
commit
bb87f260a6
|
@ -2174,11 +2174,8 @@ static void
|
||||||
_layout_format_value_handle(Ctxt *c, Evas_Object_Textblock_Format *fmt, const char *item)
|
_layout_format_value_handle(Ctxt *c, Evas_Object_Textblock_Format *fmt, const char *item)
|
||||||
{
|
{
|
||||||
const char *key = NULL, *val = NULL;
|
const char *key = NULL, *val = NULL;
|
||||||
char *tmp;
|
|
||||||
tmp = alloca(strlen(item) + 1);
|
|
||||||
strcpy(tmp, item);
|
|
||||||
|
|
||||||
_format_param_parse(tmp, &key, &val);
|
_format_param_parse(item, &key, &val);
|
||||||
if ((key) && (val)) _format_command(c->obj, fmt, key, val);
|
if ((key) && (val)) _format_command(c->obj, fmt, key, val);
|
||||||
if (key) eina_stringshare_del(key);
|
if (key) eina_stringshare_del(key);
|
||||||
if (val) eina_stringshare_del(val);
|
if (val) eina_stringshare_del(val);
|
||||||
|
|
Loading…
Reference in New Issue