Skip to content

Commit 1b16f36

Browse files
jsat97lavv17
authored andcommitted
#735: fix for SEGV with lftpget
1 parent 2fcc7ed commit 1b16f36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ResMgr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ class ResValue
161161
}
162162
bool to_bool() const
163163
{
164+
if (is_nil()) return false;
164165
return ResMgr::str2bool(s);
165166
}
166167
bool to_tri_bool(bool a) const;

0 commit comments

Comments
 (0)