Fine-tune the last change even more and use the return value as error

indicator, as it is expected.

Spotted by: Christoph Mallon <christoph.mallon@gmx.de>
This commit is contained in:
Lukas Ertl 2004-06-19 19:03:01 +00:00
parent d84675107c
commit 7d475e356f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130737

View file

@ -199,7 +199,7 @@ smb_rap_create(int fn, const char *param, const char *data,
rap = malloc(sizeof(*rap));
if (rap == NULL)
return 0;
return ENOMEM;
bzero(rap, sizeof(*rap));
p = rap->r_sparam = rap->r_nparam = strdup(param);
rap->r_sdata = rap->r_ndata = strdup(data);