Skip to content

Commit 05e6f56

Browse files
committed
IniFile::open cannot continue after TildeExpansion fails
1 parent da28332 commit 05e6f56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libnml/inifile/inifile.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ IniFile::Open(const char *file)
6868

6969
if(IsOpen()) Close();
7070

71-
TildeExpansion(file, path, sizeof(path));
71+
if (TildeExpansion(file, path, sizeof(path)))
72+
return false;
7273

7374
if((fp = fopen(path, "r")) == NULL)
7475
return(false);

0 commit comments

Comments
 (0)