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
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);