This is also stored as uint32_t.
{
const char *vstring = "INFO/version";
- uint32 version;
+ uint32_t version = 0;
int i;
+ bool ret;
if (db != NULL) {
return True;
}
}
- version = dbwrap_fetch_int32(db, vstring);
+ ret = dbwrap_fetch_uint32(db, vstring, &version);
+ if (!ret) {
+ version = 0;
+ }
+
if (version == DATABASE_VERSION) {
return true;
}
return false;
}
- version = dbwrap_fetch_int32(db, vstring);
+ ret = dbwrap_fetch_uint32(db, vstring, &version);
+ if (!ret) {
+ version = 0;
+ }
+
if (version == DATABASE_VERSION) {
/*
* Race condition