mirror of
https://github.com/vgough/encfs.git
synced 2024-11-25 01:13:12 +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
|
buf[res] = '\0'; // ensure null termination
|
||||||
string decodedName;
|
string decodedName;
|
||||||
try {
|
decodedName = FSRoot->plainPath(buf);
|
||||||
decodedName = FSRoot->plainPath(buf);
|
|
||||||
} catch (...) {
|
|
||||||
VLOG(1) << "caught error decoding path";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!decodedName.empty()) {
|
if (!decodedName.empty()) {
|
||||||
strncpy(buf, decodedName.c_str(), size - 1);
|
strncpy(buf, decodedName.c_str(), size - 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user