Author: pfg
Date: Thu Mar  5 19:51:37 2015
New Revision: 279671
URL: https://svnweb.freebsd.org/changeset/base/279671

Log:
  rlogin(1): initialize term variable.
  
  CID:          1011522
  Obtained from:        NetBSD (CVS 1.18, partial)

Modified:
  head/usr.bin/rlogin/rlogin.c

Modified: head/usr.bin/rlogin/rlogin.c
==============================================================================
--- head/usr.bin/rlogin/rlogin.c        Thu Mar  5 18:22:20 2015        
(r279670)
+++ head/usr.bin/rlogin/rlogin.c        Thu Mar  5 19:51:37 2015        
(r279671)
@@ -131,7 +131,7 @@ main(int argc, char *argv[])
        long omask;
        int argoff, ch, dflag, Dflag, one;
        uid_t uid;
-       char *host, *localname, *p, *user, term[1024];
+       char *host, *localname, *p, *user, term[1024] = "network";
        speed_t ospeed;
        struct sockaddr_storage ss;
        socklen_t sslen;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to