diff options
author | David Greenman <dg@FreeBSD.org> | 1994-09-23 10:25:38 +0000 |
---|---|---|
committer | David Greenman <dg@FreeBSD.org> | 1994-09-23 10:25:38 +0000 |
commit | c0ba84e4a353f3edfd3413c8eba1cd972db5ef7b (patch) | |
tree | 1b0cf92c9372ddea68a9d2413dba66414d8669e5 /usr.sbin/ypbind/ypbind.c | |
parent | 25738fbcc535b81c7b0e34f99410b6125e5de53f (diff) | |
download | src-c0ba84e4a353f3edfd3413c8eba1cd972db5ef7b.tar.gz src-c0ba84e4a353f3edfd3413c8eba1cd972db5ef7b.zip |
Don't return the address of a stack variable.
Notes
Notes:
svn path=/head/; revision=3033
Diffstat (limited to 'usr.sbin/ypbind/ypbind.c')
-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 18cfd642861a..73ddcaa5d8e7 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); |