add last night's changes based on static analyser results.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32507 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2011-03-09 10:24:18 +00:00
parent b04641a6a8
commit 3b9be31642
20 changed files with 122 additions and 134 deletions

View file

@ -399,16 +399,11 @@ _arg_addr(NSInvocation *inv, int index)
*/
- (void) getReturnValue: (void*)buffer
{
const char *type;
if (_validReturn == NO)
{
[NSException raise: NSGenericException
format: @"getReturnValue with no value set"];
}
type = [_sig methodReturnType];
if (*_inf[0].type != _C_VOID)
{
memcpy(buffer, _retval, _inf[0].size);