main: fix NULL pointer deref

Regression from e969219fca
This commit is contained in:
Thomas Schoebel-Theuer 2016-10-27 11:48:33 +02:00
parent 8bf599435c
commit b04db9a5ef
1 changed files with 1 additions and 1 deletions

View File

@ -2680,7 +2680,7 @@ bool is_switchover_possible(struct mars_rotate *rot, const char *old_log_path, c
}
// last check: is the new versionlink based on the old one?
if (!skip_new) {
if (new_versionlink) {
len1 = skip_sect(own_versionlink);
offs2 = skip_sect(new_versionlink);
if (unlikely(!new_versionlink[offs2++])) {