mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 13:55:47 +03:00
Remove redundant code block
This commit is contained in:
parent
4bae545c90
commit
6c33462842
1 changed files with 0 additions and 18 deletions
|
@ -103,24 +103,6 @@ int csync_vio_init(CSYNC *ctx, const char *module, const char *args) {
|
||||||
c_free_multibyte(mpath);
|
c_free_multibyte(mpath);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
|
||||||
if (lstat(path, &sb) < 0) {
|
|
||||||
SAFE_FREE(path);
|
|
||||||
|
|
||||||
char path_tmp[1024];
|
|
||||||
uint32_t size = sizeof(path_tmp);
|
|
||||||
if (_NSGetExecutablePath(path_tmp, &size) == 0)
|
|
||||||
printf("executable path is %s\n", path_tmp);
|
|
||||||
|
|
||||||
char* path2 = NULL;
|
|
||||||
path2 = c_dirname(path_tmp);
|
|
||||||
|
|
||||||
if (asprintf(&path, "%s/../Plugins/csync_%s.%s", path2, module, MODULE_EXTENSION) < 0) {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
if (lstat(path, &sb) < 0) {
|
if (lstat(path, &sb) < 0) {
|
||||||
SAFE_FREE(path);
|
SAFE_FREE(path);
|
||||||
|
|
Loading…
Reference in a new issue