mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
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:
parent
d84675107c
commit
7d475e356f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130737
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue