master
Evgeniy Kozhuhovskiy 18 years ago
parent 15830989ee
commit dafaab93d0

@ -1,3 +1,7 @@
2006-10-27 Evgeniy Kozhuhovskiy <ugenk@mgts.by>
* bforce/nodelist.c (nodelist_open): some fixes
2006-02-05 Evgeniy Kozhuhovskiy <e.kozhuhovskiy@gmail.com>
* bforce/logger.c: trying to fix broken syslog.

@ -301,10 +301,11 @@ s_nodelist *nodelist_open(const char *dir, char *name, int mode)
struct stat ndfile;
time_t lasttime = 0;
struct dirent *ndir;
DIR *ndirstream;
DIR *ndirstream = NULL;
if( (ndirstream = opendir(dir)) == NULL )
{
log("error opening nodelist directory: %s", dir);
return NULL;
}
else
{
@ -337,9 +338,9 @@ s_nodelist *nodelist_open(const char *dir, char *name, int mode)
}
}
}
}
closedir(ndirstream);
}
}
if( strcmp(name+strlen(name)-4, ".999") == 0 )
/* we haven`t found any nodelist for this mask */

Loading…
Cancel
Save