mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 03:49:20 +03:00
ownCloud: set correct module load error code.
This commit is contained in:
parent
e5c0503797
commit
a198f36bf5
1 changed files with 4 additions and 2 deletions
|
@ -296,10 +296,12 @@ retry_vio_init:
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
len = strlen(module);
|
len = strlen(module);
|
||||||
|
|
||||||
if (module[len-1] == 's') {
|
if (len > 0 && module[len-1] == 's') {
|
||||||
module[len-1] = '\0';
|
module[len-1] = '\0';
|
||||||
goto retry_vio_init;
|
goto retry_vio_init;
|
||||||
}
|
}
|
||||||
|
/* error condition: Module could not be loaded */
|
||||||
|
ctx->error_code = CSYNC_ERR_MODULE;
|
||||||
|
|
||||||
SAFE_FREE(module);
|
SAFE_FREE(module);
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Reference in a new issue