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
This commit is contained in:
Sebastian Dransfeld 2012-01-18 22:11:04 +00:00
parent 0bd4ef0855
commit 6c950e981a
1 changed files with 1 additions and 1 deletions

View File

@ -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 */