We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19e899c commit a0f7016Copy full SHA for a0f7016
examples/rpc/rpc-server.cpp
@@ -304,8 +304,9 @@ int main(int argc, char * argv[]) {
304
get_backend_memory(&free_mem, &total_mem);
305
}
306
const char * cache_dir = nullptr;
307
- std::string cache_dir_str = fs_get_cache_directory() + "rpc/";
+ std::string cache_dir_str;
308
if (params.use_cache) {
309
+ cache_dir_str = fs_get_cache_directory() + "rpc/";
310
if (!fs_create_directory_with_parents(cache_dir_str)) {
311
fprintf(stderr, "Failed to create cache directory: %s\n", cache_dir_str.c_str());
312
return 1;
0 commit comments