mirror of
https://github.com/vgough/encfs.git
synced 2024-11-21 15:33:16 +01:00
Remove not needed try/catch block
This commit is contained in:
parent
f024ae86f8
commit
11a83b85ba
@ -356,11 +356,7 @@ int _do_readlink(EncFS_Context *ctx, const string &cyName, char *buf,
|
||||
|
||||
buf[res] = '\0'; // ensure null termination
|
||||
string decodedName;
|
||||
try {
|
||||
decodedName = FSRoot->plainPath(buf);
|
||||
} catch (...) {
|
||||
VLOG(1) << "caught error decoding path";
|
||||
}
|
||||
decodedName = FSRoot->plainPath(buf);
|
||||
|
||||
if (!decodedName.empty()) {
|
||||
strncpy(buf, decodedName.c_str(), size - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user