ownCloud: set correct module load error code.

This commit is contained in:
Klaas Freitag 2012-05-15 16:15:27 +02:00
parent e5c0503797
commit a198f36bf5

View file

@ -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;
}