Extensions: treat a new repo with a blank URL as local
Now there is no difference between omitting remote_path or passing in an empty string.
This commit is contained in:
parent
924561680e
commit
571834457b
|
@ -532,9 +532,11 @@ static bUserExtensionRepo *rna_userdef_extension_repo_new(const char *name,
|
|||
|
||||
if (remote_path) {
|
||||
STRNCPY(repo->remote_path, remote_path);
|
||||
repo->flag |= USER_EXTENSION_REPO_FLAG_USE_REMOTE_PATH;
|
||||
}
|
||||
|
||||
if (repo->remote_path[0]) {
|
||||
repo->flag |= USER_EXTENSION_REPO_FLAG_USE_REMOTE_PATH;
|
||||
}
|
||||
if (repo->custom_dirpath[0]) {
|
||||
repo->flag |= USER_EXTENSION_REPO_FLAG_USE_CUSTOM_DIRECTORY;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue