some nver read compil fixes

This commit is contained in:
Jacek Jendrzej
2016-04-26 19:39:43 +02:00
parent 3b33d1ef38
commit 8a98ee851e
2 changed files with 2 additions and 3 deletions

View File

@@ -4727,12 +4727,11 @@ void CNeutrinoApp::migrateConfig(const char *fname)
migconf.loadConfig(fname);
/* here we do a simple rename of config file keys */
int magic = -424242; /* obviously a value that does not appear in real cases */
int tmp = magic;
int i;
for (i = 0; key_rename[i].from != NULL; i++) {
const char *from = key_rename[i].from;
const char *to = key_rename[i].to;
tmp = migconf.getInt32(from, magic);
int tmp = migconf.getInt32(from, magic);
if (tmp == magic) /* old key does not exist */
continue;
/* only set new key to old value if the new key does not yet exist */