mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
ownCloud: set correct module load error code.
This commit is contained in:
parent
a433ef3dfe
commit
992f0d6b87
@ -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 New Issue
Block a user