summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-09-23 10:25:38 +0000
committerdg <dg@FreeBSD.org>1994-09-23 10:25:38 +0000
commit8210ef4a47be56116d2395693c043553640bd5b0 (patch)
tree1b0cf92c9372ddea68a9d2413dba66414d8669e5 /usr.sbin
parentbe96a45601c480b3ef1459fb39833933a498382f (diff)
downloadFreeBSD-src-8210ef4a47be56116d2395693c043553640bd5b0.zip
FreeBSD-src-8210ef4a47be56116d2395693c043553640bd5b0.tar.gz
Don't return the address of a stack variable.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ypbind/ypbind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c
index 18cfd64..73ddcaa 100644
--- a/usr.sbin/ypbind/ypbind.c
+++ b/usr.sbin/ypbind/ypbind.c
@@ -28,7 +28,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$Id: ypbind.c,v 1.2 1994/01/11 19:01:23 nate Exp $";
+static char rcsid[] = "$Id: ypbind.c,v 1.1 1994/08/08 01:03:58 wollman Exp $";
#endif
#include <sys/param.h>
@@ -182,7 +182,7 @@ struct ypbind_setdom *argp;
CLIENT *clnt;
{
struct sockaddr_in *fromsin, bindsin;
- char res;
+ static char res;
bzero((char *)&res, sizeof(res));
fromsin = svc_getcaller(transp);
OpenPOWER on IntegriCloud