diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-10-22 14:10:08 +0000 | 
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-10-22 14:10:08 +0000 | 
| commit | 24249ac14fb0c47f9d83ab295f2bf9ebb37016ee (patch) | |
| tree | 9f68e931f658ae22285ae0cba2fb2e505a711779 | |
| parent | 215568d2a2ba0f0041d80fb69f60b5bcc64bb21c (diff) | |
Notes
| -rw-r--r-- | usr.bin/ee/ee.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ee/ee.c b/usr.bin/ee/ee.c index 876a58c79399..75c69948ecc1 100644 --- a/usr.bin/ee/ee.c +++ b/usr.bin/ee/ee.c @@ -49,7 +49,7 @@   |	proprietary information which is protected by   |	copyright.  All rights are reserved.   | - |	$Header: /home/ncvs/src/usr.bin/ee/ee.c,v 1.2 1995/08/30 17:11:54 ache Exp $ + |	$Header: /home/ncvs/src/usr.bin/ee/ee.c,v 1.3 1995/08/30 17:42:28 ache Exp $   |   */ @@ -62,7 +62,7 @@ char *ee_long_notice[] = {  	"copyright.  All rights are reserved."  	}; -char *version = "@(#) ee, version 1.2.4  $Revision: 1.2 $"; +char *version = "@(#) ee, version 1.2.4  $Revision: 1.3 $";  #ifdef NCURSE  #include "new_curse.h" @@ -3799,6 +3799,8 @@ ee_init()	/* check for init file and read it if it exists	*/  	int temp_int;  	string = getenv("HOME"); +	if (!string) +	    string = "/root"; /* Set to reasonable default so we don't crash */  	str1 = home = malloc(strlen(string)+10);  	strcpy(home, string);  	strcat(home, "/.init.ee");  | 
