summaryrefslogtreecommitdiff
path: root/lib/libc/rpc/clnt_perror.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-03-03 06:50:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-03-03 06:50:29 +0000
commit5cab98a552d03dd2c7a566504b72afb11b89c84d (patch)
treed522ff9f2cc2db7e245645da75821e6ef16604d2 /lib/libc/rpc/clnt_perror.c
parente823d2c765133cc0851045eae69fa841c7bae557 (diff)
plug many memory leaks
Diffstat (limited to 'lib/libc/rpc/clnt_perror.c')
-rw-r--r--lib/libc/rpc/clnt_perror.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/rpc/clnt_perror.c b/lib/libc/rpc/clnt_perror.c
index 66cfde0fdab..a341b06af7c 100644
--- a/lib/libc/rpc/clnt_perror.c
+++ b/lib/libc/rpc/clnt_perror.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: clnt_perror.c,v 1.10 1998/12/30 22:26:18 deraadt Exp $";
+static char *rcsid = "$OpenBSD: clnt_perror.c,v 1.11 2001/03/03 06:50:28 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -54,7 +54,7 @@ static char *
_buf()
{
- if (buf == 0)
+ if (buf == NULL)
buf = (char *)malloc(CLNT_PERROR_BUFLEN);
return (buf);
}
@@ -73,7 +73,7 @@ clnt_sperror(rpch, s)
char *strstart = str;
int ret;
- if (str == 0)
+ if (str == NULL)
return (0);
CLNT_GETERR(rpch, &e);
@@ -208,7 +208,7 @@ clnt_spcreateerror(s)
{
char *str = _buf();
- if (str == 0)
+ if (str == NULL)
return (0);
switch (rpc_createerr.cf_stat) {