minor fix
This commit is contained in:
parent
4ae645d950
commit
1616e9d168
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: Slit.cc,v 1.90 2004/02/10 18:45:26 fluxgen Exp $
|
// $Id: Slit.cc,v 1.91 2004/02/12 10:29:24 rathnor Exp $
|
||||||
|
|
||||||
#include "Slit.hh"
|
#include "Slit.hh"
|
||||||
|
|
||||||
|
@ -1132,7 +1132,7 @@ void Slit::loadClientList(const char *filename) {
|
||||||
m_filename = FbTk::StringUtil::expandFilename(filename);
|
m_filename = FbTk::StringUtil::expandFilename(filename);
|
||||||
|
|
||||||
struct stat buf;
|
struct stat buf;
|
||||||
if (stat(m_filename.c_str(), &buf) != 0) {
|
if (stat(m_filename.c_str(), &buf) == 0) {
|
||||||
std::ifstream file(m_filename.c_str());
|
std::ifstream file(m_filename.c_str());
|
||||||
std::string name;
|
std::string name;
|
||||||
while (! file.eof()) {
|
while (! file.eof()) {
|
||||||
|
|
Loading…
Reference in a new issue