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:
le 2004-06-19 19:03:01 +00:00
parent e8560b6f3c
commit afcd053aa6

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);