forked from enlightenment/enlightenment
[e] Fix a warning
CC e_mod_main.lo e_mod_main.c: In function ‘_gc_init’: e_mod_main.c:342:12: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result Signed-off-by: Mike McCormack <mj.mccormack@samsung.com> SVN revision: 65547
This commit is contained in:
parent
7e6ac98f13
commit
d546396db1
|
@ -336,11 +336,17 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
|
|||
E_Gadcon_Client *gcc;
|
||||
Instance *inst;
|
||||
int mw, mh;
|
||||
int r;
|
||||
|
||||
inst = E_NEW(Instance, 1);
|
||||
|
||||
asprintf(&inst->theme_file, "%s/e-module-fileman_opinfo.edj",
|
||||
e_module_dir_get(opinfo_module));
|
||||
r = asprintf(&inst->theme_file, "%s/e-module-fileman_opinfo.edj",
|
||||
e_module_dir_get(opinfo_module));
|
||||
if (r < 0)
|
||||
{
|
||||
E_FREE(inst);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// main object
|
||||
inst->o_box = e_box_add(gc->evas);
|
||||
|
|
Loading…
Reference in New Issue