Fix crash when encoding boolean properties.

This commit is contained in:
Eric Fischer
2015-04-10 13:03:11 -07:00
parent ed2f968b4e
commit d64328ac35
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -193,6 +193,8 @@ void mbtiles_write_metadata(sqlite3 *outdb, const char *fname, char **layername,
if (pv->type == VT_NUMBER) {
aprintf(&buf, "\": \"Number\"");
} else if (pv->type == VT_BOOLEAN) {
aprintf(&buf, "\": \"Boolean\"");
} else {
aprintf(&buf, "\": \"String\"");
}