Don't return NULL when the function is defined to return an integer.

OK'ed by: tjr
This commit is contained in:
Lukas Ertl 2004-06-19 10:09:44 +00:00
parent 32ef5abfe3
commit 8c0c5d04b0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130716

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 NULL;
return 0;
bzero(rap, sizeof(*rap));
p = rap->r_sparam = rap->r_nparam = strdup(param);
rap->r_sdata = rap->r_ndata = strdup(data);