mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-25 08:53:36 +00:00
Fixed return value of srv_open().
This commit is contained in:
parent
45be9a1cb1
commit
1acfe8fc54
1 changed files with 3 additions and 3 deletions
6
data.c
6
data.c
|
@ -72,10 +72,10 @@ int srv_open(char *basedir, int auto_upgrade)
|
|||
if (auto_upgrade)
|
||||
ret = db_upgrade(&error);
|
||||
else {
|
||||
if (xs_number_get(xs_dict_get(srv_config, "layout")) < db_layout) {
|
||||
ret = 0;
|
||||
if (xs_number_get(xs_dict_get(srv_config, "layout")) < db_layout)
|
||||
error = xs_fmt("ERROR: db layout changed - execute 'snac upgrade' first");
|
||||
}
|
||||
else
|
||||
ret = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue