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
e8560b6f3c
commit
afcd053aa6
@ -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 New Issue
Block a user