fclose of _PATH_THISCELL!

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@157 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1995-10-18 07:55:21 +00:00
parent e87e5106ad
commit acce7c45ca

View File

@@ -46,10 +46,12 @@ static char *
k_cell()
{
static char cell[64];
FILE *f = fopen(_PATH_THISCELL, "r");
if (f == 0)
return 0;
fscanf(f, "%s\n", cell);
fclose(f);
if (cell[0] != 0)
return cell;
else