e/gadman: Always return allocated buffer

The result from _get_bind_text will be free'd, so we must always
allocate it.

SVN revision: 67299
devs/princeamd/enlightenment-0.17-elive
Sebastian Dransfeld 12 years ago
parent 0bd4ef0855
commit 6c950e981a
  1. 2
      src/modules/gadman/e_mod_gadman.c

@ -866,7 +866,7 @@ _get_bind_text(const char* action)
}
return strdup(b);
}
return "(You must define a binding)";
return strdup("(You must define a binding)");
}
/* Callbacks */

Loading…
Cancel
Save