Remove redundant code block

This commit is contained in:
Daniel Molkentin 2012-09-23 11:02:18 +02:00 committed by Daniel Molkentin
parent 4bae545c90
commit 6c33462842

View file

@ -103,24 +103,6 @@ int csync_vio_init(CSYNC *ctx, const char *module, const char *args) {
c_free_multibyte(mpath);
#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__
if (lstat(path, &sb) < 0) {
SAFE_FREE(path);