input/LocalOpen: make assert() more strict

This commit is contained in:
Max Kellermann 2018-01-20 19:15:51 +01:00
parent 1eb9300658
commit 36f7eaadef
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@ OpenLocalInputStream(Path path, Mutex &mutex, Cond &cond)
}
#endif
assert(is == nullptr || is->IsReady());
assert(is);
assert(is->IsReady());
return is;
}