d3db425848
- merge contents of patch-ad and patch-an into patch-ad
27 lines
491 B
Plaintext
27 lines
491 B
Plaintext
--- icb/tcl.c.orig Fri Feb 24 16:20:30 1995
|
|
+++ icb/tcl.c Sun Jan 16 01:59:09 2000
|
|
@@ -145,7 +145,7 @@
|
|
|
|
if ((homedir = getenv("HOME")) == NULL) {
|
|
printf("icb: warning - $HOME not set.\r\n");
|
|
- return(0);
|
|
+ return(NULL);
|
|
}
|
|
|
|
for (p=names; p && *p; ++p)
|
|
@@ -153,12 +153,9 @@
|
|
sprintf(rcpath, "%s/%s", homedir, *p);
|
|
rcfile = rcpath;
|
|
if (access(rcfile, R_OK)==0)
|
|
- break;
|
|
+ return rcfile;
|
|
}
|
|
- if (p)
|
|
- return rcfile;
|
|
-
|
|
- return(0);
|
|
+ return(NULL);
|
|
}
|
|
|
|
tclrestrict()
|