mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 17:37:36 +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,11 +296,13 @@ retry_vio_init:
|
|||
if (rc < 0) {
|
||||
len = strlen(module);
|
||||
|
||||
if (module[len-1] == 's') {
|
||||
if (len > 0 && module[len-1] == 's') {
|
||||
module[len-1] = '\0';
|
||||
goto retry_vio_init;
|
||||
}
|
||||
|
||||
/* error condition: Module could not be loaded */
|
||||
ctx->error_code = CSYNC_ERR_MODULE;
|
||||
|
||||
SAFE_FREE(module);
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue