diff options
author | dg <dg@FreeBSD.org> | 1994-09-23 10:25:38 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-09-23 10:25:38 +0000 |
commit | 8210ef4a47be56116d2395693c043553640bd5b0 (patch) | |
tree | 1b0cf92c9372ddea68a9d2413dba66414d8669e5 /usr.sbin/ypbind | |
parent | be96a45601c480b3ef1459fb39833933a498382f (diff) | |
download | FreeBSD-src-8210ef4a47be56116d2395693c043553640bd5b0.zip FreeBSD-src-8210ef4a47be56116d2395693c043553640bd5b0.tar.gz |
Don't return the address of a stack variable.
Diffstat (limited to 'usr.sbin/ypbind')
-rw-r--r-- | usr.sbin/ypbind/ypbind.c | 4 |
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); |