diff --git a/main.cpp b/main.cpp index 722fe66..081ff17 100644 --- a/main.cpp +++ b/main.cpp @@ -214,6 +214,7 @@ int main(int argc, char **argv) { return 1; } catch (...) { std::cerr << "Exception of unknown type!" << std::endl; + return 1; } if (daemon) { diff --git a/rpcclient.cpp b/rpcclient.cpp index fb5d897..c9d89ac 100644 --- a/rpcclient.cpp +++ b/rpcclient.cpp @@ -135,7 +135,7 @@ int RpcClient::GetState(pCloud_FileState *state, char *path) { size_t errm_size = 0; int rep = 0; - if ((rep = this->Call(4, path, &errm, &errm_size) == 0)) { + if ((rep = this->Call(4, path, &errm, &errm_size)) == 0) { pdbg_logf(D_NOTICE, "rpc_get_state responese rep[%d] path[%s]", rep, path); if (errm) { pdbg_logf(D_NOTICE, "The error is %s", errm);