summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorle <le@FreeBSD.org>2004-06-19 10:09:44 +0000
committerle <le@FreeBSD.org>2004-06-19 10:09:44 +0000
commitac0b4e6f1fa381443eb3bea329a709b5e910a866 (patch)
tree054e59f578892acd6ca4935fe72b07819ba36aa4 /contrib
parentc3b1d7dffc35cfba845760b751a6200df1bae2ea (diff)
downloadFreeBSD-src-ac0b4e6f1fa381443eb3bea329a709b5e910a866.zip
FreeBSD-src-ac0b4e6f1fa381443eb3bea329a709b5e910a866.tar.gz
Don't return NULL when the function is defined to return an integer.
OK'ed by: tjr
Diffstat (limited to 'contrib')
-rw-r--r--contrib/smbfs/lib/smb/rap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/smbfs/lib/smb/rap.c b/contrib/smbfs/lib/smb/rap.c
index 2f8dbee..ea2db70 100644
--- a/contrib/smbfs/lib/smb/rap.c
+++ b/contrib/smbfs/lib/smb/rap.c
@@ -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);
OpenPOWER on IntegriCloud